2001-01-27 19:15:52 +01:00
|
|
|
SUBDIRS =
|
|
|
|
LIBNAME = e-compat
|
|
|
|
EXENAME =
|
|
|
|
|
|
|
|
## cheating: we link all attributes/items/etc for all the games. TODO - don't.
|
|
|
|
SOURCES = $(wildcard *.c)
|
|
|
|
OBJECTS = $(SOURCES:%.c=$(BUILD_DIR)/%.o)
|
|
|
|
|
|
|
|
include $(ERESSEA)/Makefile.include
|
|
|
|
|
|
|
|
##
|
|
|
|
## more definitions
|
|
|
|
##
|
|
|
|
|
|
|
|
INCLUDES += \
|
|
|
|
-I../../common \
|
|
|
|
-I../../common/util \
|
|
|
|
-I../../common/kernel
|
|
|
|
|
|
|
|
LIBRARIES = $(LIBNAMES:%=$(PUBLISH_DIR)/lib%.a)
|
|
|
|
|
|
|
|
LIBS += $(LIBNAMES:%=-l%) -lm
|
|
|
|
|
|
|
|
# library:
|
|
|
|
$(BUILD_DIR)/$(LIBRARY):: $(BUILD_DIR) $(OBJECTS)
|
|
|
|
$(AR) $(ARFLAGS) $@ $(OBJECTS)
|
|
|
|
$(INSTALL) $@ $(PUBLISH_DIR)/
|
|
|
|
|
2001-01-30 21:26:06 +01:00
|
|
|
$(PUBLISH_DIR)/$(LIBRARY): $(BUILD_DIR)/$(LIBRARY)
|
|
|
|
$(INSTALL) $< $@
|