asn.1/Makefile
author Volker Birk <vb@pep-project.org>
Mon, 16 May 2016 17:53:24 +0200
changeset 637 d93d1fe6a24c
parent 635 c7b5872a6ea4
child 638 904464a12ab6
permissions -rw-r--r--
test and Make
     1 include ../Makefile.conf
     2 
     3 ALL_SOURCE=$(subst $(NO_SOURCE),,$(wildcard *.c))
     4 ALL_OBJECTS=$(subst .c,.o,$(ALL_SOURCE))
     5 
     6 libasn1.a: $(ALL_OBJECTS)
     7 	ar -rc $@ $(ALL_OBJECTS)
     8 
     9 generate: DeviceGroup-Protocol.c
    10 	rm -f converter-sample.c
    11 
    12 %.o: %.c %.h
    13 	$(CC) $(CFLAGS) $(OPTIMIZE) -I$(ASN1C_INCLUDE) -c $< -o $@
    14 
    15 DeviceGroup-Protocol.c: devicegroup.asn1
    16 	$(ASN1C) -fincludes-quoted -fcompound-names -pdu=PEP.Message pEp.asn1 $<
    17 
    18 .PHONY: clean
    19 
    20 clean:
    21 	rm -f *.a *.o *.c *.h *.sample