server/src/eressea/Makefile

56 lines
999 B
Makefile
Raw Normal View History

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.
##
ifeq ($(CONVERT_TRIGGERS), 1)
SUBDIRS += old
LIBRARIES += $(PUBLISH_DIR)/libe-compat.a
LIBS += -le-compat
endif
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 += \
-I../common/gamecode \
2001-01-26 17:19:41 +01:00
-I../common/kernel \
-I../common/util \
-I../common
2001-01-26 17:19:41 +01:00
LIBNAMES = \
e-triggers \
e-gamecode \
2001-04-26 19:41:06 +02:00
e-modules \
2001-01-26 17:19:41 +01:00
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-28 10:47:10 +01:00
$(BUILD_DIR)/$(BINARY):: subdirs-$(CONFIG) $(BUILD_DIR) $(OBJECTS)
2001-01-25 10:37:55 +01:00
$(LD) -o $@ $(OBJECTS) $(LDFLAGS)
$(PUBLISH_DIR)/$(BINARY): $(BUILD_DIR)/$(BINARY)
$(INSTALL) $< $@