Commit 7ad6a338 authored by ASN.1 Documenter's avatar ASN.1 Documenter
Browse files

use build dir per ATS

parent 690cf35d
......@@ -12,12 +12,6 @@ ifeq (,$(TTCN3_DIR))
$(error TTCN3_DIR shall be defined in config.mk)
endif
ifeq (Windows_NT,$(OS))
ifeq (,$(OPENSSL_DIR))
$(error OPENSSL_DIR shall be defined in config.mk)
endif
endif
define IncludeModule
undefine sources
undefine modules
......@@ -52,7 +46,7 @@ outdir := $(TOPDIR)/build/$(ATS)
bindir := $(TOPDIR)/bin
sources := $(sort $(all_sources))
includes := $(outdir) $(outdir)/../asn1 $(all_includes) $(NPCAP_INCLUDE)
includes := $(outdir) $(outdir)/.. $(outdir)/../asn1 $(all_includes) $(NPCAP_INCLUDE)
EXE=.exe
ttcn_sources := $(filter %.ttcn , $(sources))
......@@ -94,7 +88,7 @@ echo: echo_sources
@echo -e "defines: $(addsuffix \n, $(defines))"
clean:
rm -f $(outdir)/$(ATS)$(EXE) $(gen_objects) $(gen_sources) $(gen_headers) $(cc_objects) $(outdir)/$(ATS)/.generate $(outdir)/libItsAsn.so
rm -f $(outdir)/$(ATS)$(EXE) $(gen_objects) $(gen_sources) $(gen_headers) $(cc_objects) $(outdir)/.generate $(outdir)/../libItsAsn.so
# rm -f $(outdir)/asn1/*.so $(outdir)/asn1/*.o $(outdir)/asn1/*.c $(outdir)/asn1/*.h $(outdir)/asn1/Makefile.am.libasncodec
regen: force_regen $(outdir)/.generate
......@@ -105,7 +99,7 @@ $(outdir) $(bindir):
mkdir -p $@
$(bindir)/$(ATS)$(EXE): $(outdir)/../asn1/libItsAsn.a $(gen_objects) $(cc_objects)
g++ -g -O0 -o $@ $(LDFLAGS) $(gen_objects) $(cc_objects) $(outdir)/asn1/libItsAsn.a $(libs)
g++ -g -O0 -o $@ $(LDFLAGS) $(gen_objects) $(cc_objects) $(outdir)/../asn1/libItsAsn.a $(libs)
$(gen_objects) :%.o :%.cc
g++ -g -O0 -c $(addprefix -D, $(defines)) $(addprefix -I, $(includes)) -o $@ $<
......@@ -117,9 +111,9 @@ $(cc_objects) : $(outdir)/%.o : %.cc
#$(gen_sources):
# $(TTCN3_DIR)/bin/compiler -n -e -L -R -U none -o $(outdir) $(tt_sources)
$(gen_sources): $(outdir)/.generate-$(ATS)
$(gen_sources): $(outdir)/.generate
$(outdir)/.generate-$(ATS): Makefile $(tt_sources)
$(outdir)/.generate: Makefile $(tt_sources)
$(TTCN3_DIR)/bin/compiler -n -e -L -R -U none -o $(outdir) $(tt_sources)
touch $@
......
TTCN3_DIR := /cygdrive/c/Tools/Titan
WPCAP_DLL_PATH := /cygdrive/c/windows/system32/npcap/wpcap.dll
NPCAP_INCLUDE := /cygdrive/c/PROGRA~1/Npcap/sdk/include
\ No newline at end of file
NPCAP_INCLUDE := /cygdrive/c/PROGRA~1/Npcap/sdk/include
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment