Initial revision
authorSebastian Hammer <quinn@indexdata.com>
Tue, 7 Feb 1995 17:53:43 +0000 (17:53 +0000)
committerSebastian Hammer <quinn@indexdata.com>
Tue, 7 Feb 1995 17:53:43 +0000 (17:53 +0000)
odr/Makefile [new file with mode: 0644]

diff --git a/odr/Makefile b/odr/Makefile
new file mode 100644 (file)
index 0000000..8b5a4a8
--- /dev/null
@@ -0,0 +1,50 @@
+# Copyright (C) 1994, Index Data I/S 
+# All rights reserved.
+# Sebastian Hammer, Adam Dickmeiss
+# $Id: Makefile,v 1.1 1995-02-07 17:53:43 quinn Exp $
+
+SHELL=/bin/sh
+INCLUDE=-I../include -I.
+CFLAGS=-g -Wall -pedantic
+DEFS=$(INCLUDE)
+LIB=odr.a
+PO = odr_bool.o ber_bool.o ber_len.o ber_tag.o odr_util.o odr_null.o \
+       ber_null.o odr_int.o ber_int.o odr_tag.o odr_cons.o odr_seq.o\
+       odr_oct.o ber_oct.o odr_bit.o ber_bit.o odr_oid.o ber_oid.o odr_use.o \
+       odr_choice.o
+CPP=cc -E
+
+all: $(LIB) test
+
+test: test.o $(LIB)
+       cc $(CFLAGS) $(INCLUDE) -o test test.o $(LIB)
+
+alll:
+
+$(LIB): $(PO)
+       rm -f $(LIB)
+       ar qc $(LIB) $(PO)
+       ranlib $(LIB)
+
+.c.o:
+       $(CC) -c $(DEFS) $(CFLAGS) $<
+
+clean:
+       rm -f *.[oa] test core mon.out gmon.out errlist
+
+depend: depend2
+
+depend1:
+       mv Makefile Makefile.tmp
+       sed '/^#Depend/q' <Makefile.tmp >Makefile
+       $(CPP) $(INCLUDE) -M *.c >>Makefile
+       -rm Makefile.tmp
+
+depend2:
+       $(CPP) $(INCLUDE) -M *.c >.depend       
+
+ifeq (.depend,$(wildcard .depend))
+include .depend
+endif
+
+#Depend --- DOT NOT DELETE THIS LINE