1 # Copyright 2017, pEp Foundation
2 # This file is part of pEpEngine
3 # This file may be used under the terms of the GNU General Public License version 3
6 include ../default.conf
8 ALL_SOURCE=$(wildcard *.c)
9 ALL_OBJECTS=$(subst .c,.o,$(ALL_SOURCE))
11 libasn1.a: $(ALL_OBJECTS)
14 # "converter-sample.c" is the example file containing a "main()" function generated by ans1c.
16 generate: Sync-Protocols.c
17 rm -f converter-sample.c
20 $(CC) $(CFLAGS) $(CFLAGS_GENERATED) -I. $(ASN1C_INC) -c $< -o $@
22 Sync-Protocols.c: pEp.asn1 devicegroup.asn1 protocols.asn1
23 $(ASN1C) -gen-PER -fincludes-quoted -fcompound-names -pdu=PEP.Message $^
27 rm -f *.a *.o *.c *.h *.sample
35 rm -f $(PREFIX)/lib/libasn1.a