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
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
vb@637
    13
	$(CC) $(CFLAGS) $(OPTIMIZE) -I$(ASN1C_INCLUDE) -c $< -o $@
vb@628
    14
vb@635
    15
DeviceGroup-Protocol.c: devicegroup.asn1
vb@637
    16
	$(ASN1C) -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