1 # Copyright (C) 1995-1998, Index Data I/S
3 # Sebastian Hammer, Adam Dickmeiss
4 # $Id: Makefile,v 1.28 1998-03-20 14:45:01 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 odr_enum.o
20 all: $(LIBDIR) $(INCDIR) $(LIB)
23 $(CC) $(CFLAGS) $(LIBINCLUDE) -o test test.o $(LIBS)
36 $(CC) -c $(DEFS) $(CFLAGS) $<
39 rm -f *.[oa] test core mon.out gmon.out errlist
44 sed '/^#Depend/q' <Makefile >Makefile.tmp
45 $(CPP) $(DEFS) -M *.c >>Makefile.tmp
46 mv -f Makefile.tmp Makefile
49 $(CPP) $(DEFS) -M *.c >.depend
51 ifeq (.depend,$(wildcard .depend))
55 #Depend --- DOT NOT DELETE THIS LINE