SUBDIRS = LIBRARY = BINARY = eressea ## cheating: we link all attributes/items/etc for all the games. TODO - don't. #SOURCES = $(wildcard *.c) SOURCES = main.c korrektur.c OBJECTS = $(SOURCES:%.c=$(BUILD_DIR)/%.o) include ../Makefile.include ## more definitions INCLUDES += \ -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 # executable: $(BUILD_DIR)/$(BINARY):: $(BUILD_DIR) $(OBJECTS) $(LIBRARIES) $(LD) -o $@ $(OBJECTS) $(LDFLAGS) $(INSTALL) $@ $(PUBLISH_DIR)/