1 # Copyright (C) 1994, Index Data I/S
3 # Sebastian Hammer, Adam Dickmeiss
4 # $Id: Makefile,v 1.26 1997-09-17 12:10:33 adam Exp $
7 INCLUDE=-I../include -I.
10 DEFS=$(INCLUDE) $(CDEFS) # -DODR_DEBUG
11 LIB=$(LIBDIR)/libodr.a
13 PO = odr_bool.o ber_bool.o ber_len.o ber_tag.o odr_util.o odr_null.o \
14 ber_null.o odr_int.o ber_int.o odr_tag.o odr_cons.o odr_seq.o\
15 odr_oct.o ber_oct.o odr_bit.o ber_bit.o odr_oid.o ber_oid.o odr_use.o \
16 odr_choice.o odr_any.o ber_any.o odr.o odr_mem.o dumpber.o \
21 all: $(LIBDIR) $(INCDIR) $(LIB)
24 $(CC) $(CFLAGS) $(LIBINCLUDE) -o test test.o $(LIBS)
37 $(CC) -c $(DEFS) $(CFLAGS) $<
40 rm -f *.[oa] test core mon.out gmon.out errlist
45 sed '/^#Depend/q' <Makefile >Makefile.tmp
46 $(CPP) $(DEFS) -M *.c >>Makefile.tmp
47 mv -f Makefile.tmp Makefile
50 $(CPP) $(DEFS) -M *.c >.depend
52 ifeq (.depend,$(wildcard .depend))
56 #Depend --- DOT NOT DELETE THIS LINE