asn.1/Makefile
author Damiano Boppart <damiano@pep-security.net>
Mon, 14 Aug 2017 11:15:24 +0200
branchENGINE-228
changeset 1960 3e0027330faa
parent 1958 433df9ee336d
child 1966 0329556f28ab
permissions -rw-r--r--
Fix incorrect copyright statement
     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
     4 # see LICENSE.txt
     5 
     6 include ../Makefile.conf
     7 
     8 ALL_SOURCE=$(wildcard *.c)
     9 ALL_OBJECTS=$(subst .c,.o,$(ALL_SOURCE))
    10 
    11 libasn1.a: $(ALL_OBJECTS)
    12 	ar -rc $@ $^
    13 
    14 .PHONY: generate
    15 generate: Sync-Protocols.c
    16 	rm -f converter-sample.c
    17 
    18 %.o: %.c %.h
    19 	$(CC) $(CFLAGS) -I. $(ASN1C_INC) -c $< -o $@
    20 
    21 Sync-Protocols.c: pEp.asn1 devicegroup.asn1 protocols.asn1
    22 	$(ASN1C) -gen-PER -fincludes-quoted -fcompound-names -pdu=PEP.Message $^
    23 
    24 .PHONY: clean
    25 clean:
    26 	rm -f *.a *.o *.c *.h *.sample
    27 
    28 .PHONY: install
    29 install: libasn1.a
    30 	cp $< $(PREFIX)/lib/
    31 
    32 .PHONY: uninstall
    33 uninstall:
    34 	rm -f $(PREFIX)/lib/libasn1.a