2001-01-25 10:37:55 +01:00
|
|
|
SUBDIRS =
|
2001-01-27 19:15:52 +01:00
|
|
|
LIBNAME =
|
|
|
|
EXENAME = eressea
|
2001-01-25 10:37:55 +01:00
|
|
|
|
2001-01-27 19:15:52 +01:00
|
|
|
include ../Makefile.include
|
2001-01-25 10:37:55 +01:00
|
|
|
|
2001-01-27 19:15:52 +01:00
|
|
|
##
|
2001-01-26 17:19:41 +01:00
|
|
|
## cheating: we link all attributes/items/etc for all the games. TODO - don't.
|
2001-01-27 19:15:52 +01:00
|
|
|
##
|
2001-01-26 17:19:41 +01:00
|
|
|
#SOURCES = $(wildcard *.c)
|
|
|
|
SOURCES = main.c korrektur.c
|
2001-01-25 10:37:55 +01:00
|
|
|
OBJECTS = $(SOURCES:%.c=$(BUILD_DIR)/%.o)
|
|
|
|
|
2001-01-27 19:15:52 +01:00
|
|
|
##
|
|
|
|
## conversion code for old triggers - should only be used for free eressea,
|
|
|
|
## and only for old datafiles.
|
|
|
|
##
|
2001-01-28 09:01:52 +01:00
|
|
|
#SUBDIRS += old
|
|
|
|
#LIBRARIES += $(PUBLISH_DIR)/libe-compat.a
|
|
|
|
#LIBS += -le-compat
|
2001-01-25 10:37:55 +01:00
|
|
|
|
2001-01-27 19:15:52 +01:00
|
|
|
##
|
2001-01-25 10:37:55 +01:00
|
|
|
## more definitions
|
2001-01-27 19:15:52 +01:00
|
|
|
##
|
2001-01-25 10:37:55 +01:00
|
|
|
|
|
|
|
INCLUDES += \
|
2001-01-26 17:19:41 +01:00
|
|
|
-I../common \
|
|
|
|
-I../common/util \
|
|
|
|
-I../common/kernel \
|
|
|
|
-I../common/gamecode
|
|
|
|
|
|
|
|
LIBNAMES = \
|
|
|
|
e-triggers \
|
|
|
|
e-modules \
|
|
|
|
e-gamecode \
|
|
|
|
e-kernel \
|
|
|
|
e-items \
|
|
|
|
e-spells \
|
|
|
|
e-races \
|
|
|
|
e-attributes \
|
|
|
|
e-util
|
|
|
|
|
2001-01-27 19:15:52 +01:00
|
|
|
LIBRARIES += $(LIBNAMES:%=$(PUBLISH_DIR)/lib%.a)
|
2001-01-26 17:19:41 +01:00
|
|
|
|
|
|
|
LIBS += $(LIBNAMES:%=-l%) -lm
|
|
|
|
|
2001-01-25 10:37:55 +01:00
|
|
|
# executable:
|
2001-01-27 19:15:52 +01:00
|
|
|
|
2001-01-26 17:19:41 +01:00
|
|
|
$(BUILD_DIR)/$(BINARY):: $(BUILD_DIR) $(OBJECTS) $(LIBRARIES)
|
2001-01-25 10:37:55 +01:00
|
|
|
$(LD) -o $@ $(OBJECTS) $(LDFLAGS)
|
|
|
|
$(INSTALL) $@ $(PUBLISH_DIR)/
|