Add a proper build system.
This commit is contained in:
parent
167158b541
commit
9d65cc690e
14 changed files with 4845 additions and 23 deletions
20
src/Makefile
20
src/Makefile
|
@ -1,9 +1,15 @@
|
|||
ALLEGRO_MODULES = allegro-5.0 allegro_main-5.0 allegro_image-5.0
|
||||
SHARED_LIB = ${LIB_PREFIX}objgamekit${LIB_SUFFIX}
|
||||
LIB_MAJOR = 0
|
||||
LIB_MINOR = 0
|
||||
|
||||
all:
|
||||
@mkdir -p build
|
||||
@objfw-compile --lib 0.0 -o objgamekit --builddir build *.m \
|
||||
--arc `pkg-config --cflags --libs ${ALLEGRO_MODULES}`
|
||||
SRCS = OGKBitmap.m \
|
||||
OGKDisplay.m \
|
||||
OGKEvent.m \
|
||||
OGKEventQueue.m
|
||||
|
||||
clean:
|
||||
@rm -fr build libobjgamekit.* *~
|
||||
INCLUDES = ${SRCS:.m=.h}
|
||||
|
||||
include ../buildsys.mk
|
||||
|
||||
CPPFLAGS += -DOGK_INTERNAL
|
||||
LD = ${OBJC}
|
||||
|
|
Reference in a new issue