# Generated automatically from Makefile.in by configure. srcdir = . prefix = /usr/local bindir = $(prefix)/bin SHELL = /bin/sh OBJS = simxd.o server.o sites.o db.o SRCS = simxd.c server.c sites.c db.c OBJS2 = dis_relay.o CC = cc CFLAGS = -I$(srcdir)/.. -I.. -I../lib -I$(srcdir) -I. -fno-common -I/usr/X11R6/include -DSTDC_HEADERS=1 -DHAVE_SYS_TIME_H=1 -DHAVE_STDLIB_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_FCNTL_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_MSG_CONTROL=1 -DHAVE_RECVMSG=1 -DHAVE_STRDUP=1 -DHAVE_NEW_RPCGEN=1 -DHAVE_NDBM=1 LDFLAGS = LIBS = -L../lib -ldis -lgdbm -lelf -lm RPCGEN = rpcgen # Programs to make tags files. ETAGS = etags -tw CTAGS = ctags -tw tagsrcs = $(SRCS) all: simxd dis_relay simxd.c: ../lib/simmgr.h ../lib/simmgr.x rm -f $@ $(RPCGEN) -s udp -o $@ $(srcdir)/../lib/simmgr.x mv $@ tmp.c perl -p -e 's/\#include .*simmgr.h"$$/#include "simmgr.h"/' $@ rm -f tmp.c simxd: $(OBJS) ../lib/libdis.a $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(OBJS) $(LIBS) dis_relay: $(OBJS2) ../lib/libdis.a $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(OBJS2) $(LIBS) clean: rm -rf simxd *.o core simxd.c ../lib/simmgr.h TAGS tags *.bak dis_relay distclean: clean rm -f Makefile depend: makedepend $(CFLAGS) $(SRCS) TAGS: $(tagsrcs) $(ETAGS) $(tagsrcs) tags: $(tagsrcs) $(CTAGS) $(tagsrcs) check test: # DO NOT DELETE THIS LINE -- make depend depends on it.