1 # Copyright (C) 1994, Index Data I/S
3 # Sebastian Hammer, Adam Dickmeiss
4 # $Id: Makefile,v 1.23 1995-05-22 15:31:26 adam Exp $
8 #LIBMOSI=../../xtimosi/src/libmosi.a $(LIBDIR)/librfc.a
11 INCLUDE=-I../include -I. -I../../xtimosi/src
12 LIBINCLUDE=-L$(LIBDIR)
13 #CFLAGS=-Wall -pedantic -g
15 LIB=$(LIBDIR)/libserver.a
16 LIBS=$(LIBDIR)/libserver.a $(LIBDIR)/libasn.a $(LIBDIR)/libodr.a \
17 $(LIBDIR)/libcomstack.a $(LIBMOSI) $(LIBDIR)/libutil.a
18 PO = eventl.o seshigh.o statserv.o requestq.o
23 all: $(LIBDIR) $(LIB) $(PROG)
25 $(PROG): $(LIB) $(PROGO)
26 $(CC) $(CFLAGS) $(LIBINCLUDE) -o $(PROG) $(PROGO) $(LIBS)
39 $(CC) -c $(DEFS) $(CFLAGS) $<
42 rm -f *.[oa] test core mon.out gmon.out errlist tst cli $(PROG)
47 mv Makefile Makefile.tmp
48 sed '/^#Depend/q' <Makefile.tmp >Makefile
49 $(CPP) $(INCLUDE) -M *.c >>Makefile
53 $(CPP) $(INCLUDE) -M *.c >.depend
55 ifeq (.depend,$(wildcard .depend))
59 #Depend --- DOT NOT DELETE THIS LINE