# use gcc (gcc-2.95 on 64-bit sparc)
CC= gcc
+LD= ld
KCFLAGS= -D_KERNEL -Wall -Wstrict-prototypes ${KGCCFLAGS} # -mcpu=ultrasparc
OPTOPTS= -O
CSHAREDFLAGS= -fPIC
-LDSHARED= gcc
+LDSHARED= ${CC}
LDSHAREDFLAGS= -shared
# use Sun CC (for a 64-bit kernel, uncomment " -xarch=v9 -xregs=no%appl ")
HEADERS= if.h ioc.h rt.h sock.h
EXTRA_DIST= ddp.conf Makefile
-INCPATH= -I../../include -I../netatalk
+INCPATH= -I../../include -I../netatalk -I../..
CFLAGS= ${DEFS} ${OPTOPTS} ${INCPATH} ${KCFLAGS}
ALL= ../../libatalk ../../include ../../bin ../../etc ../../man
FRC:
ddp : ${OBJ}
- ld -r -o ddp ${OBJ}
+ ${LD} -r -o ddp ${OBJ}
linkage.o : linkage.c
${CC} ${CFLAGS} -DVERSION=\"`cat ../../VERSION`\" -c linkage.c
/*
- * $Id: aarp.c,v 1.2 2001-06-29 14:14:47 rufustfirefly Exp $
+ * $Id: aarp.c,v 1.3 2002-01-17 06:13:02 srittau Exp $
*/
#ifdef HAVE_CONFIG_H
#include <netinet/arp.h>
#include <net/if.h>
+#ifdef STDC_HEADERS
+#include <strings.h>
+#else
#include <string.h>
+#endif
#include <netatalk/at.h>
#include <netatalk/aarp.h>
/*
- * $Id: ddp.c,v 1.2 2001-06-29 14:14:47 rufustfirefly Exp $
+ * $Id: ddp.c,v 1.3 2002-01-17 06:13:02 srittau Exp $
*/
#ifdef HAVE_CONFIG_H
#include <sys/ethernet.h>
#include <net/if.h>
+#ifdef STDC_HEADERS
+#include <strings.h>
+#else
#include <string.h>
+#endif
#include <netatalk/endian.h>
#include <netatalk/ddp.h>