asn.1/Makefile
author Volker Birk <vb@pep-project.org>
Mon, 16 May 2016 18:01:28 +0200
changeset 638 904464a12ab6
parent 637 d93d1fe6a24c
child 670 5a3d50d25168
permissions -rw-r--r--
removing windoze build from default build
     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) -gen-PER -fincludes-quoted -fcompound-names -pdu=PEP.Message pEp.asn1 $<
    17 
    18 .PHONY: clean
    19 
    20 clean:
    21 	rm -f *.a *.o *.c *.h *.sample