server/src/eressea/Makefile

42 lines
717 B
Makefile
Raw Normal View History

2001-01-25 10:37:55 +01:00
SUBDIRS =
LIBRARY =
BINARY = eressea
2001-01-26 17:19:41 +01:00
## cheating: we link all attributes/items/etc for all the games. TODO - don't.
#SOURCES = $(wildcard *.c)
SOURCES = main.c korrektur.c
2001-01-25 10:37:55 +01:00
OBJECTS = $(SOURCES:%.c=$(BUILD_DIR)/%.o)
include ../Makefile.include
## more definitions
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
LIBRARIES = $(LIBNAMES:%=$(PUBLISH_DIR)/lib%.a)
LIBS += $(LIBNAMES:%=-l%) -lm
2001-01-25 10:37:55 +01:00
# executable:
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)/