2008-08-20 22:58:09 +00:00
|
|
|
#
|
2006-04-13 20:47:06 +00:00
|
|
|
# EDuke32 Makefile for GNU Make
|
2008-08-20 22:58:09 +00:00
|
|
|
#
|
|
|
|
|
2010-12-19 22:29:01 +00:00
|
|
|
include Makefile.common
|
2006-04-13 20:47:06 +00:00
|
|
|
|
2008-10-19 12:14:04 +00:00
|
|
|
|
2006-04-13 20:47:06 +00:00
|
|
|
# SDK locations - adjust to match your setup
|
2010-12-19 22:29:01 +00:00
|
|
|
ifneq ($(DXROOT_OVERRIDE),)
|
|
|
|
DXROOT=$(DXROOT_OVERRIDE)
|
|
|
|
else
|
|
|
|
DXROOT=../sdk/dx
|
|
|
|
#DXROOT=c:/sdks/directx/dx8
|
2010-08-12 21:06:51 +00:00
|
|
|
endif
|
2010-01-24 23:33:17 +00:00
|
|
|
|
2010-12-19 22:29:01 +00:00
|
|
|
|
2008-08-20 22:58:09 +00:00
|
|
|
# Build locations
|
2006-08-31 01:54:23 +00:00
|
|
|
SRC=source
|
|
|
|
RSRC=rsrc
|
|
|
|
ESRC=$(EROOT)/src
|
|
|
|
EINC=$(EROOT)/include
|
2006-04-13 20:47:06 +00:00
|
|
|
INC=$(SRC)
|
|
|
|
o=o
|
2008-11-12 04:16:41 +00:00
|
|
|
# ENETROOT=$(ESRC)/enet
|
2006-04-13 20:47:06 +00:00
|
|
|
|
|
|
|
ifneq (0,$(RELEASE))
|
2010-08-12 21:06:51 +00:00
|
|
|
# Debugging disabled
|
2010-12-19 22:29:01 +00:00
|
|
|
debug+= $(F_NO_STACK_PROTECTOR)
|
2006-04-13 20:47:06 +00:00
|
|
|
else
|
2010-08-12 21:06:51 +00:00
|
|
|
# Debugging enabled
|
2010-07-03 08:53:57 +00:00
|
|
|
ifneq (0,$(KRANDDEBUG))
|
2010-12-19 22:29:01 +00:00
|
|
|
debug+= -fno-inline -fno-inline-functions -fno-inline-functions-called-once
|
2010-07-03 08:53:57 +00:00
|
|
|
endif
|
2006-04-13 20:47:06 +00:00
|
|
|
endif
|
|
|
|
|
2010-12-19 22:29:01 +00:00
|
|
|
OURCFLAGS=$(BASECFLAGS) \
|
|
|
|
-I$(INC) -I$(EINC) -I$(SRC)/jmact -I$(JAUDIOLIBDIR)/include -I$(ENETDIR)/include \
|
|
|
|
$(ARCH)
|
|
|
|
|
|
|
|
OURCXXFLAGS=$(BASECXXFLAGS)
|
|
|
|
NASMFLAGS=$(BASEASFLAGS)
|
|
|
|
|
2009-04-07 18:56:22 +00:00
|
|
|
|
2009-07-27 05:34:05 +00:00
|
|
|
JAUDIOLIBDIR=$(SRC)/jaudiolib
|
|
|
|
JAUDIOLIB=libjfaudiolib.a
|
|
|
|
|
2009-12-05 09:22:43 +00:00
|
|
|
ENETDIR=$(SRC)/enet
|
|
|
|
ENETLIB=libenet.a
|
|
|
|
|
2010-12-19 22:29:01 +00:00
|
|
|
include $(EROOT)/Makefile.shared
|
2006-04-15 03:12:08 +00:00
|
|
|
|
2006-04-13 20:47:06 +00:00
|
|
|
|
|
|
|
|
2010-05-03 08:30:25 +00:00
|
|
|
ifeq ($(PLATFORM),WINDOWS)
|
|
|
|
OBJ=obj_win
|
|
|
|
EOBJ=eobj_win
|
2010-08-12 21:06:51 +00:00
|
|
|
LIBS+= $(L_SSP) -Wl,--enable-auto-import
|
2010-05-03 08:30:25 +00:00
|
|
|
else
|
|
|
|
LIBS+= -ldl -pthread
|
2010-08-12 21:06:51 +00:00
|
|
|
ifneq (0,$(PROFILER))
|
2010-05-03 08:30:25 +00:00
|
|
|
LIBS+= -lprofiler
|
2010-08-12 21:06:51 +00:00
|
|
|
debug+= -pg
|
2007-08-17 03:16:46 +00:00
|
|
|
endif
|
2010-08-12 21:06:51 +00:00
|
|
|
OBJ=obj
|
|
|
|
EOBJ=eobj
|
2010-05-03 08:30:25 +00:00
|
|
|
endif
|
2006-04-13 20:47:06 +00:00
|
|
|
|
2010-07-19 15:14:00 +00:00
|
|
|
JMACTOBJ=$(OBJ)/file_lib.$o \
|
2006-08-31 01:54:23 +00:00
|
|
|
$(OBJ)/control.$o \
|
|
|
|
$(OBJ)/keyboard.$o \
|
|
|
|
$(OBJ)/mouse.$o \
|
|
|
|
$(OBJ)/mathutil.$o \
|
2008-10-20 03:09:19 +00:00
|
|
|
$(OBJ)/scriplib.$o \
|
|
|
|
$(OBJ)/animlib.$o
|
2006-08-31 01:54:23 +00:00
|
|
|
|
|
|
|
GAMEOBJS=$(OBJ)/game.$o \
|
|
|
|
$(OBJ)/actors.$o \
|
|
|
|
$(OBJ)/anim.$o \
|
|
|
|
$(OBJ)/config.$o \
|
2010-08-02 08:13:51 +00:00
|
|
|
$(OBJ)/demo.$o \
|
2006-08-31 01:54:23 +00:00
|
|
|
$(OBJ)/gamedef.$o \
|
|
|
|
$(OBJ)/gameexec.$o \
|
2006-12-10 19:32:44 +00:00
|
|
|
$(OBJ)/gamevars.$o \
|
2006-08-31 01:54:23 +00:00
|
|
|
$(OBJ)/global.$o \
|
|
|
|
$(OBJ)/menus.$o \
|
|
|
|
$(OBJ)/namesdyn.$o \
|
2010-08-02 08:13:51 +00:00
|
|
|
$(OBJ)/net.$o \
|
2006-08-31 01:54:23 +00:00
|
|
|
$(OBJ)/player.$o \
|
|
|
|
$(OBJ)/premap.$o \
|
|
|
|
$(OBJ)/savegame.$o \
|
|
|
|
$(OBJ)/sector.$o \
|
|
|
|
$(OBJ)/rts.$o \
|
|
|
|
$(OBJ)/osdfuncs.$o \
|
|
|
|
$(OBJ)/osdcmds.$o \
|
2006-11-16 03:02:42 +00:00
|
|
|
$(OBJ)/grpscan.$o \
|
2009-07-27 05:34:05 +00:00
|
|
|
$(OBJ)/sounds.$o \
|
2006-04-13 20:47:06 +00:00
|
|
|
$(JMACTOBJ)
|
|
|
|
|
2009-03-15 22:58:20 +00:00
|
|
|
EDITOROBJS=$(OBJ)/astub.$o \
|
2009-09-12 23:03:15 +00:00
|
|
|
$(OBJ)/m32def.$o \
|
|
|
|
$(OBJ)/m32exec.$o \
|
|
|
|
$(OBJ)/m32vars.$o \
|
2010-12-19 22:29:01 +00:00
|
|
|
$(OBJ)/mathutil.$o \
|
|
|
|
$(OBJ)/sounds_mapster32.$o
|
2006-04-13 20:47:06 +00:00
|
|
|
|
2008-08-20 22:58:09 +00:00
|
|
|
# PLATFORM SPECIFIC SETTINGS
|
|
|
|
|
|
|
|
ifeq ($(PLATFORM),LINUX)
|
2010-08-12 21:06:51 +00:00
|
|
|
OURCFLAGS += -fno-pic
|
|
|
|
NASMFLAGS += -f elf
|
|
|
|
LIBS += -lvorbisfile -lvorbis -logg
|
2008-08-20 22:58:09 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(PLATFORM),DARWIN)
|
2010-08-12 21:06:51 +00:00
|
|
|
ifeq (1,$(SDL_FRAMEWORK))
|
2011-02-12 13:25:24 +00:00
|
|
|
APPLE_INCLUDE_DIR=$(abspath Apple/include)
|
|
|
|
OURCFLAGS += -fno-pic -I$(APPLE_INCLUDE_DIR) -I/Library/Frameworks/SDL.framework/Headers \
|
|
|
|
-I/Library/Frameworks/SDL_mixer.framework/Headers
|
2010-08-12 21:06:51 +00:00
|
|
|
LIBS += -read_only_relocs suppress -LApple/lib -lvorbisfile -lvorbis -logg -lm \
|
|
|
|
-Wl,-framework,SDL -Wl,-framework,SDL_mixer Apple/lib/libSDLmain.a \
|
|
|
|
-Wl,-framework,Cocoa -Wl,-framework,Carbon -Wl,-framework,OpenGL \
|
|
|
|
-Wl,-framework,CoreMidi -Wl,-framework,AudioUnit \
|
|
|
|
-Wl,-framework,AudioToolbox -Wl,-framework,IOKit -Wl,-framework,AGL \
|
|
|
|
-Wl,-framework,QuickTime -lm
|
2011-02-12 13:25:24 +00:00
|
|
|
# I like to have the SDLMain.m from the OSX SDL package to be in this dir:
|
|
|
|
LIBS += $(realpath SDLMain.m)
|
2010-08-12 21:06:51 +00:00
|
|
|
else
|
|
|
|
OURCFLAGS += -fno-pic -I$(SDLROOT)/include -I$(SDLROOT)/include/SDL
|
|
|
|
LIBS += -read_only_relocs suppress -lvorbisfile -lvorbis -logg -lm -lSDL_mixer \
|
|
|
|
-Wl,-framework,Cocoa -Wl,-framework,Carbon -Wl,-framework,OpenGL \
|
|
|
|
-Wl,-framework,CoreMidi -Wl,-framework,AudioUnit \
|
|
|
|
-Wl,-framework,AudioToolbox -Wl,-framework,IOKit -Wl,-framework,AGL \
|
|
|
|
-Wl,-framework,QuickTime -lm
|
|
|
|
endif
|
|
|
|
NASMFLAGS += -f Mach-O
|
2008-08-20 22:58:09 +00:00
|
|
|
endif
|
|
|
|
|
2006-04-13 20:47:06 +00:00
|
|
|
ifeq ($(PLATFORM),WINDOWS)
|
2010-08-12 21:06:51 +00:00
|
|
|
OURCFLAGS += -fno-pic -DUNDERSCORES -I$(DXROOT)/include
|
|
|
|
NASMFLAGS+= -DUNDERSCORES -f win32
|
|
|
|
LIBS += -L$(JAUDIOLIBDIR)/third-party/mingw32/lib -lvorbisfile -lvorbis -logg -lwsock32 -lws2_32 -lwinmm -ldsound
|
|
|
|
GAMEOBJS+= $(OBJ)/gameres.$o $(OBJ)/winbits.$o $(OBJ)/startwin.game.$o $(OBJ)/music.$o $(OBJ)/midi.$o $(OBJ)/mpu401.$o
|
|
|
|
EDITOROBJS+= $(OBJ)/buildres.$o
|
2009-07-27 05:34:05 +00:00
|
|
|
JAUDIOLIB=libjfaudiolib_win32.a
|
2009-12-05 09:22:43 +00:00
|
|
|
ENETLIB=libenet_win32.a
|
2009-07-27 10:46:42 +00:00
|
|
|
else
|
2010-08-12 21:06:51 +00:00
|
|
|
# -lGLU to build with gluBuild2DMipmaps
|
2009-07-28 06:32:58 +00:00
|
|
|
ifeq ($(RENDERTYPE),SDL)
|
2010-08-12 21:06:51 +00:00
|
|
|
ifeq (0,$(SDL_FRAMEWORK))
|
|
|
|
OURCFLAGS+= $(subst -Dmain=SDL_main,,$(shell $(SDLCONFIG) --cflags))
|
2009-07-28 06:32:58 +00:00
|
|
|
LIBS+= -lSDL_mixer
|
2010-08-12 21:06:51 +00:00
|
|
|
else
|
|
|
|
OURCFLAGS += -DSDL_FRAMEWORK
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq (1,$(HAVE_GTK2))
|
|
|
|
OURCFLAGS+= -DHAVE_GTK2 $(shell pkg-config --cflags gtk+-2.0)
|
|
|
|
GAMEOBJS+= $(OBJ)/game_banner.$o $(OBJ)/startgtk.game.$o
|
|
|
|
EDITOROBJS+= $(OBJ)/editor_banner.$o
|
|
|
|
endif
|
|
|
|
|
|
|
|
GAMEOBJS+= $(OBJ)/game_icon.$o $(OBJ)/sdlmusic.$o
|
|
|
|
EDITOROBJS+= $(OBJ)/build_icon.$o
|
2009-07-28 06:32:58 +00:00
|
|
|
endif
|
2006-04-13 20:47:06 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
|
|
OURCFLAGS+= $(BUILDCFLAGS)
|
|
|
|
OURCXXFLAGS+= $(BUILDCFLAGS)
|
|
|
|
|
2010-01-24 23:33:17 +00:00
|
|
|
MISCLINKOPTS=
|
2011-01-03 23:50:20 +00:00
|
|
|
ifeq ($(PLATFORM),WINDOWS)
|
2011-01-03 22:04:20 +00:00
|
|
|
MISCLINKOPTS+= -Wl,--large-address-aware
|
|
|
|
endif
|
2010-01-24 23:33:17 +00:00
|
|
|
ifneq (0,$(KRANDDEBUG))
|
2011-01-03 22:04:20 +00:00
|
|
|
MISCLINKOPTS+=-Wl,-Map=$@.memmap
|
2010-08-12 21:06:51 +00:00
|
|
|
endif
|
|
|
|
ifneq (0,$(PROFILER))
|
2011-01-03 22:04:20 +00:00
|
|
|
MISCLINKOPTS+=-pg
|
2010-01-24 23:33:17 +00:00
|
|
|
endif
|
|
|
|
|
2008-10-19 12:14:04 +00:00
|
|
|
ifeq ($(PRETTY_OUTPUT),1)
|
2008-10-18 12:37:26 +00:00
|
|
|
.SILENT:
|
2008-10-19 12:14:04 +00:00
|
|
|
endif
|
2009-12-05 09:22:43 +00:00
|
|
|
.PHONY: clean all engine $(EOBJ)/$(ENGINELIB) $(EOBJ)/$(EDITORLIB) $(JAUDIOLIBDIR)/$(JAUDIOLIB) $(ENETDIR)/$(ENETLIB)
|
2006-04-13 20:47:06 +00:00
|
|
|
|
|
|
|
# TARGETS
|
|
|
|
|
2008-10-18 12:37:26 +00:00
|
|
|
all: notice eduke32$(EXESUFFIX) mapster32$(EXESUFFIX)
|
2006-04-13 20:47:06 +00:00
|
|
|
|
2008-10-18 12:37:26 +00:00
|
|
|
all:
|
2008-10-18 13:25:23 +00:00
|
|
|
$(BUILD_FINISHED)
|
|
|
|
@ls -l eduke32$(EXESUFFIX)
|
|
|
|
@ls -l mapster32$(EXESUFFIX)
|
2008-10-18 12:37:26 +00:00
|
|
|
|
|
|
|
notice:
|
2008-10-18 13:25:23 +00:00
|
|
|
$(BUILD_STARTED)
|
2010-01-24 23:33:17 +00:00
|
|
|
|
2009-12-05 09:22:43 +00:00
|
|
|
eduke32$(EXESUFFIX): $(GAMEOBJS) $(EOBJ)/$(ENGINELIB) $(JAUDIOLIBDIR)/$(JAUDIOLIB) $(ENETDIR)/$(ENETLIB)
|
2008-10-18 13:25:23 +00:00
|
|
|
$(LINK_STATUS)
|
2011-02-12 13:25:24 +00:00
|
|
|
if $(CC) $(CFLAGS) $(OURCFLAGS) -o $@ $^ $(LIBS) $(STDCPPLIB) $(MISCLINKOPTS); then $(LINK_OK); else $(LINK_FAILED); fi
|
2008-10-18 12:37:26 +00:00
|
|
|
ifeq (1,$(RELEASE))
|
2009-04-08 00:02:44 +00:00
|
|
|
ifeq (0,$(DEBUGANYWAY))
|
2009-09-29 23:27:48 +00:00
|
|
|
$(STRIP) eduke32$(EXESUFFIX)
|
2009-04-07 18:56:22 +00:00
|
|
|
endif
|
2008-10-18 12:37:26 +00:00
|
|
|
endif
|
2010-01-24 23:33:17 +00:00
|
|
|
|
2011-02-21 23:08:21 +00:00
|
|
|
mapster32$(EXESUFFIX): $(EDITOROBJS) $(EOBJ)/$(EDITORLIB) $(EOBJ)/$(ENGINELIB) $(JAUDIOLIBDIR)/$(JAUDIOLIB)
|
2008-10-18 13:25:23 +00:00
|
|
|
$(LINK_STATUS)
|
2010-07-03 08:53:57 +00:00
|
|
|
if $(CC) $(CFLAGS) $(OURCFLAGS) -o $@ $^ $(LIBS) $(STDCPPLIB) $(MISCLINKOPTS); then $(LINK_OK); else $(LINK_FAILED); fi
|
2008-10-18 12:37:26 +00:00
|
|
|
ifeq (1,$(RELEASE))
|
2009-04-08 00:02:44 +00:00
|
|
|
ifeq (0,$(DEBUGANYWAY))
|
2009-09-29 23:27:48 +00:00
|
|
|
$(STRIP) mapster32$(EXESUFFIX)
|
2009-04-07 18:56:22 +00:00
|
|
|
endif
|
2010-08-12 21:06:51 +00:00
|
|
|
endif
|
2006-04-13 20:47:06 +00:00
|
|
|
|
|
|
|
include Makefile.deps
|
|
|
|
|
|
|
|
.PHONY: enginelib editorlib
|
|
|
|
enginelib editorlib:
|
2006-11-19 07:09:43 +00:00
|
|
|
-mkdir -p $(EOBJ)
|
2008-10-20 12:33:29 +00:00
|
|
|
ifeq ($(PRETTY_OUTPUT),1)
|
2008-11-20 14:06:36 +00:00
|
|
|
printf "\033[K\033[0;35mChanging dir to \033[1;35m$(CURDIR)/$(EROOT)\033[0;35m \033[0m\n"
|
2010-12-19 22:29:01 +00:00
|
|
|
endif
|
|
|
|
$(MAKE) -C $(EROOT)/ "OBJ=../$(EOBJ)" $@
|
|
|
|
#\
|
2010-01-24 23:33:17 +00:00
|
|
|
SUPERBUILD=$(SUPERBUILD) POLYMOST=$(POLYMOST) DEBUGANYWAY=$(DEBUGANYWAY) KRANDDEBUG=$(KRANDDEBUG)\
|
2010-08-12 21:06:51 +00:00
|
|
|
USE_OPENGL=$(USE_OPENGL) BUILD32_ON_64=$(BUILD32_ON_64) PROFILER=$(PROFILER)\
|
2010-11-12 18:16:42 +00:00
|
|
|
NOASM=$(NOASM) NEDMALLOC=$(NEDMALLOC) RELEASE=$(RELEASE) OPTLEVEL=$(OPTLEVEL) $@
|
2010-08-12 21:06:51 +00:00
|
|
|
ifeq ($(PRETTY_OUTPUT),1)
|
2008-11-20 14:06:36 +00:00
|
|
|
printf "\033[K\033[0;35mChanging dir to \033[1;35m$(CURDIR)\033[0;35m \033[0m\n"
|
2008-10-20 12:33:29 +00:00
|
|
|
endif
|
2010-01-24 23:33:17 +00:00
|
|
|
|
2006-08-31 01:54:23 +00:00
|
|
|
$(EOBJ)/$(ENGINELIB): enginelib
|
|
|
|
$(EOBJ)/$(EDITORLIB): editorlib
|
2009-07-27 05:34:05 +00:00
|
|
|
$(JAUDIOLIBDIR)/$(JAUDIOLIB):
|
|
|
|
ifeq ($(PRETTY_OUTPUT),1)
|
|
|
|
printf "\033[K\033[0;35mChanging dir to \033[1;35m$(CURDIR)/$(JAUDIOLIBDIR)\033[0;35m \033[0m\n"
|
|
|
|
endif
|
2010-12-19 22:29:01 +00:00
|
|
|
$(MAKE) -C $(JAUDIOLIBDIR) #PRETTY_OUTPUT=$(PRETTY_OUTPUT) EROOT=$(EROOT) RELEASE=$(RELEASE) OPTLEVEL=$(OPTLEVEL) DEBUGANYWAY=$(DEBUGANYWAY)
|
2009-07-27 05:34:05 +00:00
|
|
|
ifeq ($(PRETTY_OUTPUT),1)
|
|
|
|
printf "\033[K\033[0;35mChanging dir to \033[1;35m$(CURDIR)\033[0;35m \033[0m\n"
|
|
|
|
endif
|
2006-04-13 20:47:06 +00:00
|
|
|
|
2009-12-05 09:22:43 +00:00
|
|
|
$(ENETDIR)/$(ENETLIB):
|
|
|
|
ifeq ($(PRETTY_OUTPUT),1)
|
|
|
|
printf "\033[K\033[0;35mChanging dir to \033[1;35m$(CURDIR)/$(ENETDIR)\033[0;35m \033[0m\n"
|
|
|
|
endif
|
2010-12-19 22:29:01 +00:00
|
|
|
$(MAKE) -C $(ENETDIR) #PRETTY_OUTPUT=$(PRETTY_OUTPUT) EROOT=$(EROOT) RELEASE=$(RELEASE) OPTLEVEL=$(OPTLEVEL)
|
2009-12-05 09:22:43 +00:00
|
|
|
ifeq ($(PRETTY_OUTPUT),1)
|
|
|
|
printf "\033[K\033[0;35mChanging dir to \033[1;35m$(CURDIR)\033[0;35m \033[0m\n"
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
2006-04-13 20:47:06 +00:00
|
|
|
# RULES
|
2006-08-31 01:54:23 +00:00
|
|
|
$(OBJ)/%.$o: $(SRC)/%.nasm
|
2008-10-18 13:25:23 +00:00
|
|
|
$(COMPILE_STATUS)
|
2009-02-28 07:44:54 +00:00
|
|
|
$(AS) $(NASMFLAGS) $< -o $@
|
2010-08-12 21:06:51 +00:00
|
|
|
|
2006-08-31 01:54:23 +00:00
|
|
|
$(OBJ)/%.$o: $(SRC)/%.c
|
2008-10-18 13:25:23 +00:00
|
|
|
$(COMPILE_STATUS)
|
2008-10-19 12:14:04 +00:00
|
|
|
if $(CC) $(CFLAGS) $(OURCFLAGS) -c $< -o $@; then $(COMPILE_OK); else $(COMPILE_FAILED); fi
|
2008-10-18 12:37:26 +00:00
|
|
|
|
2006-08-31 01:54:23 +00:00
|
|
|
$(OBJ)/%.$o: $(SRC)/%.cpp
|
2008-10-18 13:25:23 +00:00
|
|
|
$(COMPILE_STATUS)
|
2008-10-19 12:14:04 +00:00
|
|
|
if $(CXX) $(CXXFLAGS) $(OURCXXFLAGS) $(OURCFLAGS) -c $< -o $@; then $(COMPILE_OK); else $(COMPILE_FAILED); fi
|
2008-10-18 12:37:26 +00:00
|
|
|
|
2006-08-31 01:54:23 +00:00
|
|
|
$(OBJ)/%.$o: $(SRC)/jmact/%.c
|
2008-10-18 13:25:23 +00:00
|
|
|
$(COMPILE_STATUS)
|
2008-10-19 12:14:04 +00:00
|
|
|
if $(CC) $(CFLAGS) $(OURCFLAGS) -c $< -o $@; then $(COMPILE_OK); else $(COMPILE_FAILED); fi
|
2006-07-14 07:28:32 +00:00
|
|
|
|
2006-08-31 01:54:23 +00:00
|
|
|
$(OBJ)/%.$o: $(SRC)/misc/%.rc
|
2008-10-18 13:25:23 +00:00
|
|
|
$(COMPILE_STATUS)
|
2009-09-29 23:27:48 +00:00
|
|
|
if $(RC) -i $< -o $@ --include-dir=$(EINC) --include-dir=$(SRC) -DPOLYMER=$(POLYMER); then $(COMPILE_OK); else $(COMPILE_FAILED); fi
|
2006-07-14 07:28:32 +00:00
|
|
|
|
2006-08-31 01:54:23 +00:00
|
|
|
$(OBJ)/%.$o: $(SRC)/util/%.c
|
2008-10-18 13:25:23 +00:00
|
|
|
$(COMPILE_STATUS)
|
2008-10-19 12:14:04 +00:00
|
|
|
if $(CC) $(CFLAGS) $(OURCFLAGS) -c $< -o $@; then $(COMPILE_OK); else $(COMPILE_FAILED); fi
|
2010-01-24 23:33:17 +00:00
|
|
|
|
2006-08-31 01:54:23 +00:00
|
|
|
$(OBJ)/%.$o: $(RSRC)/%.c
|
2008-10-18 13:25:23 +00:00
|
|
|
$(COMPILE_STATUS)
|
2008-10-19 12:14:04 +00:00
|
|
|
if $(CC) $(CFLAGS) $(OURCFLAGS) -c $< -o $@; then $(COMPILE_OK); else $(COMPILE_FAILED); fi
|
2010-01-24 23:33:17 +00:00
|
|
|
|
2006-08-31 01:54:23 +00:00
|
|
|
$(OBJ)/game_banner.$o: $(RSRC)/game_banner.c
|
2011-01-16 03:43:48 +00:00
|
|
|
$(COMPILE_STATUS)
|
|
|
|
if $(CC) $(CFLAGS) $(OURCFLAGS) -Wno-pointer-sign -c $< -o $@; then $(COMPILE_OK); else $(COMPILE_FAILED); fi
|
2011-02-12 13:25:24 +00:00
|
|
|
|
2006-08-31 01:54:23 +00:00
|
|
|
$(OBJ)/editor_banner.$o: $(RSRC)/editor_banner.c
|
2011-01-16 03:43:48 +00:00
|
|
|
$(COMPILE_STATUS)
|
|
|
|
if $(CC) $(CFLAGS) $(OURCFLAGS) -Wno-pointer-sign -c $< -o $@; then $(COMPILE_OK); else $(COMPILE_FAILED); fi
|
|
|
|
|
2006-08-31 01:54:23 +00:00
|
|
|
$(RSRC)/game_banner.c: $(RSRC)/game.bmp
|
2006-04-13 20:47:06 +00:00
|
|
|
echo "#include <gdk-pixbuf/gdk-pixdata.h>" > $@
|
|
|
|
gdk-pixbuf-csource --extern --struct --raw --name=startbanner_pixdata $^ | sed 's/load_inc//' >> $@
|
2006-08-31 01:54:23 +00:00
|
|
|
$(RSRC)/editor_banner.c: $(RSRC)/build.bmp
|
2006-04-13 20:47:06 +00:00
|
|
|
echo "#include <gdk-pixbuf/gdk-pixdata.h>" > $@
|
|
|
|
gdk-pixbuf-csource --extern --struct --raw --name=startbanner_pixdata $^ | sed 's/load_inc//' >> $@
|
|
|
|
|
|
|
|
# PHONIES
|
2008-08-20 22:58:09 +00:00
|
|
|
|
2006-04-13 20:47:06 +00:00
|
|
|
clean:
|
2009-12-05 09:22:43 +00:00
|
|
|
-rm -f $(OBJ)/* eduke32$(EXESUFFIX) mapster32$(EXESUFFIX) core* duke3d_w32$(EXESUFFIX) && $(MAKE) -C $(JAUDIOLIBDIR) clean && $(MAKE) -C $(ENETDIR) clean
|
2006-04-13 20:47:06 +00:00
|
|
|
|
|
|
|
veryclean: clean
|
2009-11-14 02:30:47 +00:00
|
|
|
-rm -f $(EOBJ)/* $(RSRC)/*banner*
|