# Change CONFIG to the .mk file that matches your system

CONFIG = system.mk

# Do Not Change anything below this line. It should be setup in config

include ../$(CONFIG)

# this is for revised ntserv/struct.h

#OPT = -g

CFLAGS = $(OPT) $(EXTRAINCS) $(DIRS) $(FLAGS)

LIBS = $(EXTRALIBS)

TOOLDIR= $(LIBDIR)/tools

GETPATH = getpath.o data.o

LINTFLAGS = -habxc $(EXTRAINCS) $(FLAGS)

#	Common Objects

C_OBJS = data.o  \
	openmem.o  \
	smessage.o \
        strdup.o \
        roboshar.o \
        slotmaint.o

#	Sequencer Objects

S_OBJS = sequencer.o  commands_sequencer.o $(C_OBJS)

SRCS = rmove.c getpath.c \
	data.c  detonate.c  enter.c  getship.c  interface.c \
	orbit.c  phaser.c  sintab.c openmem.c sysdefaults.c torp.c \
	util.c $(RANDOMC) commands.c smessage.c basep.c wander2.c \
	inl.c inlcomm.c slotmaint.c

EXECS =	sequencer 

all: $(PMAKE) $(EXECS)

sequencer: $(PMAKE) $(S_OBJS)
	$(CC) $(CFLAGS)  -o sequencer $(S_OBJS) $(EXTRALIBS)

commands_sequencer.o: $(PMAKE) commands.c
	$(CC) $(CFLAGS) $(DEP) -DSEQUENCER -c commands.c -o commands_sequencer.o

clean:; rm -f *.o *.ln

reallyclean:; rm -f $(EXECS) *~ #*#


install: $(EXECS) 
	$(INSTALL) $(INSTALLOPTS) sequencer $(LIBDIR)/sequencer

lint: $(SRCS)
	lint $(LINTFLAGS) -u $?
	touch lint

rmdependencies:
	makedepend

depend:
	makedepend $(CFLAGS) -f Makefile $(SRCS)
#####
# DO NOT DELETE THIS LINE -- make depend depends on it.

data.o: ../ntserv/copyright.h ../ntserv/defs.h ../config.h
data.o: /usr/include/string.h /usr/include/standards.h
data.o: /usr/include/sys/types.h ../ntserv/struct.h copyright.h
data.o: ../ntserv/data.h
openmem.o: copyright.h /usr/include/stdio.h /usr/include/standards.h
openmem.o: /usr/include/sys/types.h /usr/include/sys/ipc.h
openmem.o: /usr/include/sys/shm.h /usr/include/mach/machine/vm_types.h
openmem.o: /usr/include/errno.h /usr/include/pwd.h /usr/include/ctype.h
openmem.o: /usr/include/time.h defs.h ../ntserv/copyright.h ../config.h
openmem.o: /usr/include/string.h /usr/include/unistd.h
openmem.o: /usr/include/sys/access.h struct.h data.h
commands.o: /usr/include/stdio.h /usr/include/standards.h
commands.o: /usr/include/ctype.h /usr/include/string.h
commands.o: /usr/include/sys/types.h /usr/include/time.h
commands.o: /usr/include/signal.h /usr/include/machine/signal.h defs.h
commands.o: ../ntserv/copyright.h ../config.h struct.h copyright.h data.h
smessage.o: copyright.h /usr/include/stdio.h /usr/include/standards.h
smessage.o: /usr/include/math.h /usr/include/signal.h
smessage.o: /usr/include/machine/signal.h /usr/include/ctype.h
smessage.o: /usr/include/varargs.h /usr/include/va_list.h defs.h
smessage.o: ../ntserv/copyright.h ../config.h /usr/include/string.h
smessage.o: /usr/include/sys/types.h struct.h data.h
slotmaint.o: copyright2.h /usr/include/stdio.h /usr/include/standards.h
slotmaint.o: /usr/include/sys/types.h defs.h ../ntserv/copyright.h
slotmaint.o: ../config.h /usr/include/string.h struct.h copyright.h data.h
