asn.1/Makefile
author Dirk Zimmermann <dirk@pep-project.org>
Thu, 19 May 2016 19:22:47 +0200
changeset 670 5a3d50d25168
parent 638 904464a12ab6
child 674 a8afa1168b12
permissions -rw-r--r--
Xcode: Build fixes. Ignoring asn1c generated files.
vb@628
     1
include ../Makefile.conf
vb@628
     2
vb@637
     3
ALL_SOURCE=$(subst $(NO_SOURCE),,$(wildcard *.c))
vb@637
     4
ALL_OBJECTS=$(subst .c,.o,$(ALL_SOURCE))
vb@637
     5
vb@637
     6
libasn1.a: $(ALL_OBJECTS)
vb@637
     7
	ar -rc $@ $(ALL_OBJECTS)
vb@637
     8
vb@637
     9
generate: DeviceGroup-Protocol.c
vb@637
    10
	rm -f converter-sample.c
vb@628
    11
vb@628
    12
%.o: %.c %.h
dirk@670
    13
	$(CC) $(CFLAGS) $(OPTIMIZE) -I. -I$(ASN1C_INCLUDE) -c $< -o $@
vb@628
    14
vb@635
    15
DeviceGroup-Protocol.c: devicegroup.asn1
vb@638
    16
	$(ASN1C) -gen-PER -fincludes-quoted -fcompound-names -pdu=PEP.Message pEp.asn1 $<
vb@628
    17
vb@628
    18
.PHONY: clean
vb@628
    19
vb@628
    20
clean:
vb@637
    21
	rm -f *.a *.o *.c *.h *.sample