2001-01-25 10:37:55 +01:00
|
|
|
SUBDIRS =
|
|
|
|
|
|
|
|
LIBRARY =
|
|
|
|
BINARY = mapper
|
|
|
|
|
2001-02-10 11:58:46 +01:00
|
|
|
include ../Makefile.include
|
|
|
|
|
2001-01-25 10:37:55 +01:00
|
|
|
SOURCES = $(wildcard *.c)
|
|
|
|
OBJECTS = $(SOURCES:%.c=$(BUILD_DIR)/%.o)
|
|
|
|
|
|
|
|
## more definitions
|
|
|
|
|
|
|
|
INCLUDES += \
|
2001-01-28 09:20:05 +01:00
|
|
|
-I../common/util \
|
|
|
|
-I../common/kernel \
|
2001-04-01 08:58:45 +02:00
|
|
|
-I../common/spells \
|
2001-05-17 22:24:28 +02:00
|
|
|
-I../common \
|
|
|
|
-I..
|
2001-01-25 10:37:55 +01:00
|
|
|
|
2002-09-29 09:47:17 +02:00
|
|
|
LIBNAMES = \
|
2002-05-23 09:19:54 +02:00
|
|
|
e-kernel \
|
2002-09-29 09:47:17 +02:00
|
|
|
e-gamecode \
|
|
|
|
e-triggers \
|
|
|
|
e-modules \
|
|
|
|
e-attributes \
|
2002-05-23 09:19:54 +02:00
|
|
|
e-items \
|
|
|
|
e-spells \
|
|
|
|
e-races \
|
2002-09-26 12:57:55 +02:00
|
|
|
e-util
|
2002-05-23 09:19:54 +02:00
|
|
|
|
2001-01-25 10:37:55 +01:00
|
|
|
LIBS += \
|
2001-12-10 01:13:39 +01:00
|
|
|
-L$(PUBLISH_DIR) \
|
2001-01-25 10:37:55 +01:00
|
|
|
-lm
|
2001-05-17 22:24:28 +02:00
|
|
|
|
2002-05-23 09:19:54 +02:00
|
|
|
LIBDEPS = $(LIBNAMES:%=../$(BUILD_DIR)/lib%.a)
|
|
|
|
LIBS += $(LIBNAMES:%=-l%)
|
|
|
|
|
2001-02-15 11:50:29 +01:00
|
|
|
ifeq ($(NCURSES), 1)
|
|
|
|
LIBS += -lncurses
|
|
|
|
else
|
|
|
|
LIBS += -lcurses
|
|
|
|
endif
|
2001-01-25 10:37:55 +01:00
|
|
|
|
2001-02-10 11:58:46 +01:00
|
|
|
##
|
|
|
|
## 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
|
|
|
|
|
2001-01-25 10:37:55 +01:00
|
|
|
# executable:
|
2002-05-23 09:19:54 +02:00
|
|
|
$(BUILD_DIR)/$(BINARY):: $(BUILD_DIR) $(OBJECTS) $(LIBDEPS)
|
2001-01-25 10:37:55 +01:00
|
|
|
$(LD) -o $@ $(OBJECTS) $(LDFLAGS)
|
|
|
|
$(INSTALL) $@ $(PUBLISH_DIR)/
|
|
|
|
|
2001-01-31 00:16:17 +01:00
|
|
|
$(PUBLISH_DIR)/$(BINARY): $(BUILD_DIR)/$(BINARY)
|
|
|
|
$(INSTALL) $< $@
|