diff --git a/src/mapper/Makefile b/src/mapper/Makefile index 40e2e1934..9299bc72a 100644 --- a/src/mapper/Makefile +++ b/src/mapper/Makefile @@ -3,11 +3,11 @@ SUBDIRS = LIBRARY = BINARY = mapper +include ../Makefile.include + SOURCES = $(wildcard *.c) OBJECTS = $(SOURCES:%.c=$(BUILD_DIR)/%.o) -include ../Makefile.include - ## more definitions INCLUDES += \ @@ -27,6 +27,16 @@ LIBS += \ -lcurses \ -lm +## +## conversion code for old triggers - should only be used for free eressea, +## and only for old datafiles. +## +ifeq ($(CONVERT_TRIGGERS), 1) + SUBDIRS += old + LIBRARIES += $(PUBLISH_DIR)/libe-compat.a + LIBS += -le-compat +endif + # executable: $(BUILD_DIR)/$(BINARY):: $(BUILD_DIR) $(OBJECTS) $(LD) -o $@ $(OBJECTS) $(LDFLAGS)