# $Id$ PILOT_LINK_DIR = ../pilot-link PILOT_LIBPISOCK_DIR = ${PILOT_LINK_DIR}/libpisock CC = gcc \ -I${PILOT_LINK_DIR}/include -I- \ -I${PILOT_LINK_DIR}/include -I. -I${PILOT_LINK_DIR} \ -static \ -DHAVE_CONFIG_H ifeq ($(OS),Windows_NT) LIBS = \ -lwsock32 \ -ladvapi32 \ -lcomctl32 \ -luser32 \ -lcomdlg32 \ -lmpr \ -lnetapi32 \ -lm PISOCK_SERIAL_O = winserial.c else PISOCK_SERIAL_O = unixserial.c endif OFILES = \ nhsc.o \ ${PILOT_LIBPISOCK_DIR}/cmp.o \ ${PILOT_LIBPISOCK_DIR}/debug.o \ ${PILOT_LIBPISOCK_DIR}/dlp.o \ ${PILOT_LIBPISOCK_DIR}/inet.o \ ${PILOT_LIBPISOCK_DIR}/net.o \ ${PILOT_LIBPISOCK_DIR}/padp.o \ ${PILOT_LIBPISOCK_DIR}/serial.o \ ${PILOT_LIBPISOCK_DIR}/slp.o \ ${PILOT_LIBPISOCK_DIR}/socket.o \ ${PILOT_LIBPISOCK_DIR}/sys.o \ ${PILOT_LIBPISOCK_DIR}/syspkt.o \ ${PILOT_LIBPISOCK_DIR}/utils.o \ ${PILOT_LIBPISOCK_DIR}/usb.o \ ${PILOT_LIBPISOCK_DIR}/linuxusb.o \ ${PILOT_LIBPISOCK_DIR}/${PISOCK_SERIAL_O} \ nhsc : $(OFILES) $(CC) -o $@ $(OFILES) $(LIBS) all :: nhsc clean :: rm -f *.o nhsc install :: nhsc cp nhsc ${GNUSTEP_SYSTEM_ROOT}/Tools/${GNUSTEP_HOST_CPU}/${GNUSTEP_HOST_OS}