forked from pEp.foundation/pEpEngine
generate with asn1c and nmake
parent
b7e2e67134
commit
993b76c4db
@ -0,0 +1,36 @@
|
||||
# This file is under GNU General Public License 3.0
|
||||
# see LICENSE.txt
|
||||
|
||||
# other than on Unix this NMakefile does only the code generation part
|
||||
# the library build is in build-win64 in the Visual Studio project
|
||||
|
||||
ASN1C_INC= -I.
|
||||
|
||||
!include ..\NMakefile.mak
|
||||
|
||||
ASN1C_OPTIONS = -fincludes-quoted -fcompound-names -pdu=auto
|
||||
|
||||
all: Sync.c Storage.c ASN1Message.c
|
||||
|
||||
!include files.mak
|
||||
|
||||
Sync.c: $(SYNC_FILES) pEp.asn1
|
||||
$(ASN1C) -gen-PER $(ASN1C_OPTIONS) $(SYNC_FILES) pEp.asn1
|
||||
del /f converter-sample.c *.sample 2>nul
|
||||
|
||||
# These files are generated with Sync.c because of the dependency
|
||||
#
|
||||
# Distribution.c: $(DISTRIBUTION_FILES) pEp.asn1
|
||||
# $(ASN1C) -gen-PER $(ASN1C_OPTIONS) $(DISTRIBUTION_FILES) pEp.asn1
|
||||
# del /f converter-sample.c 2>nul
|
||||
|
||||
Storage.c: $(STORAGE_FILES) pEp.asn1
|
||||
$(ASN1C) -gen-PER $(ASN1C_OPTIONS) $(STORAGE_FILES) pEp.asn1
|
||||
del /f converter-sample.c *.sample 2>nul
|
||||
|
||||
ASN1Message.c: message.asn1 pEp.asn1
|
||||
$(ASN1C) -gen-PER $(ASN1C_OPTIONS) message.asn1 pEp.asn1
|
||||
del /f converter-sample.c *.sample 2>nul
|
||||
|
||||
clean:
|
||||
del /f/q *.c *.h
|
@ -0,0 +1,5 @@
|
||||
# common for Unix and Windows build
|
||||
|
||||
DISTRIBUTION_FILES = distribution.asn1 keyreset.asn1 managedgroup.asn1 exploration.asn1 echo.asn1
|
||||
SYNC_FILES = sync.asn1 keysync.asn1 trustsync.asn1 groupsync.asn1 $(DISTRIBUTION_FILES)
|
||||
STORAGE_FILES = storage.asn1 messagestorage.asn1
|
Loading…
Reference in New Issue