2008-08-20 22:58:09 +00:00
|
|
|
#
|
2006-04-13 20:47:06 +00:00
|
|
|
# Build Makefile for GNU Make
|
2008-08-20 22:58:09 +00:00
|
|
|
#
|
2006-04-13 20:47:06 +00:00
|
|
|
|
|
|
|
# Notes:
|
|
|
|
# As of 6 July 2005, the engine should handle optimisations being enabled.
|
|
|
|
# If things seem to be going wrong, lower or disable optimisations, then
|
|
|
|
# try again. If things are still going wrong, call me.
|
|
|
|
#
|
|
|
|
|
2008-10-19 12:14:04 +00:00
|
|
|
# Use colored output
|
|
|
|
PRETTY_OUTPUT = 1
|
|
|
|
|
2006-04-13 20:47:06 +00:00
|
|
|
# Engine options - these may be overridden by game makefiles
|
|
|
|
# SUPERBUILD - enables voxels
|
|
|
|
# POLYMOST - enables Polymost renderer
|
|
|
|
# USE_OPENGL - enables OpenGL support in Polymost
|
|
|
|
# NOASM - disables the use of inline assembly pragmas
|
2007-08-17 19:32:56 +00:00
|
|
|
# LINKED_GTK - enables compile-time linkage to GTK
|
2006-04-13 20:47:06 +00:00
|
|
|
#
|
2007-08-16 23:25:24 +00:00
|
|
|
|
2006-04-13 20:47:06 +00:00
|
|
|
SUPERBUILD ?= 1
|
|
|
|
POLYMOST ?= 1
|
2008-05-10 01:29:37 +00:00
|
|
|
POLYMER ?= 1
|
2006-04-13 20:47:06 +00:00
|
|
|
USE_OPENGL ?= 1
|
|
|
|
NOASM ?= 0
|
2007-08-17 19:32:56 +00:00
|
|
|
LINKED_GTK ?= 0
|
2008-03-26 09:28:21 +00:00
|
|
|
BUILD32_ON_64 ?= 0
|
2006-04-13 20:47:06 +00:00
|
|
|
|
2009-05-07 16:00:49 +00:00
|
|
|
ifeq (0,$(USE_OPENGL))
|
|
|
|
POLYMER = 0
|
|
|
|
endif
|
|
|
|
|
2008-08-20 22:58:09 +00:00
|
|
|
# Debugging/Build options
|
2006-04-13 20:47:06 +00:00
|
|
|
# RELEASE - 1 = no debugging
|
|
|
|
# EFENCE - 1 = compile with Electric Fence for malloc() debugging
|
2008-08-20 22:58:09 +00:00
|
|
|
# OPTLEVEL - 0..3 = GCC optimization strategy
|
|
|
|
#
|
2006-04-13 20:47:06 +00:00
|
|
|
RELEASE?=1
|
2009-04-07 18:56:22 +00:00
|
|
|
DEBUGANYWAY?=0
|
2010-01-24 23:33:17 +00:00
|
|
|
KRANDDEBUG?=0
|
2006-04-13 20:47:06 +00:00
|
|
|
EFENCE?=0
|
2008-08-20 22:58:09 +00:00
|
|
|
OPTLEVEL ?= 2
|
2006-04-13 20:47:06 +00:00
|
|
|
|
2010-01-24 23:33:17 +00:00
|
|
|
ifneq (0,$(KRANDDEBUG))
|
|
|
|
RELEASE=0
|
|
|
|
endif
|
|
|
|
|
2008-08-20 22:58:09 +00:00
|
|
|
# SDK locations for Windows - adjust to match your setup
|
|
|
|
#
|
2006-04-15 03:12:08 +00:00
|
|
|
DXROOT=c:/sdks/directx/dx61
|
2006-04-13 20:47:06 +00:00
|
|
|
FMODROOTWIN=c:/sdks/fmodapi374win/api
|
|
|
|
|
2008-08-20 22:58:09 +00:00
|
|
|
# Build locations - OBJ gets overridden to the game-specific objects dir
|
|
|
|
#
|
2006-08-31 01:54:23 +00:00
|
|
|
OBJ?=obj.gnu
|
|
|
|
SRC=src
|
|
|
|
RSRC=rsrc
|
|
|
|
INC=include
|
2006-04-13 20:47:06 +00:00
|
|
|
|
2008-11-12 04:16:41 +00:00
|
|
|
# ENETROOT=$(SRC)/enet
|
2008-11-11 13:24:05 +00:00
|
|
|
|
2008-08-20 22:58:09 +00:00
|
|
|
# Filename extensions - these won't need to change
|
|
|
|
#
|
2006-04-13 20:47:06 +00:00
|
|
|
o=o
|
|
|
|
res=o
|
|
|
|
asm=nasm
|
|
|
|
|
2008-08-20 22:58:09 +00:00
|
|
|
# Debugging and release
|
|
|
|
#
|
|
|
|
ifneq ($(RELEASE),0)
|
|
|
|
# Debugging disabled
|
2008-09-26 17:20:10 +00:00
|
|
|
debug=-fomit-frame-pointer -funswitch-loops -O$(OPTLEVEL)
|
2006-04-13 20:47:06 +00:00
|
|
|
else
|
2008-08-20 22:58:09 +00:00
|
|
|
# Debugging enabled
|
2006-04-13 20:47:06 +00:00
|
|
|
debug=-ggdb -O0 -DDEBUGGINGAIDS -DNOSDLPARACHUTE
|
2010-01-24 23:33:17 +00:00
|
|
|
ifneq (0,$(KRANDDEBUG))
|
|
|
|
debug+=-DKRANDDEBUG=1
|
|
|
|
endif
|
2006-04-13 20:47:06 +00:00
|
|
|
endif
|
|
|
|
|
2009-04-07 18:56:22 +00:00
|
|
|
ifneq (0,$(DEBUGANYWAY))
|
|
|
|
debug+=-ggdb
|
|
|
|
endif
|
|
|
|
|
2006-04-13 20:47:06 +00:00
|
|
|
CC=gcc
|
|
|
|
CXX=gcc
|
|
|
|
AS=nasm
|
|
|
|
RC=windres
|
|
|
|
AR=ar
|
|
|
|
RANLIB=ranlib
|
2008-09-26 17:20:10 +00:00
|
|
|
|
|
|
|
GCC_MAJOR := $(shell $(CC) -dumpversion 2>&1 | cut -d'.' -f1)
|
|
|
|
GCC_MINOR := $(shell $(CC) -dumpversion 2>&1 | cut -d'.' -f2)
|
|
|
|
|
|
|
|
ifeq (4,$(GCC_MAJOR))
|
2008-11-14 11:04:22 +00:00
|
|
|
# debug += -ftree-vectorize
|
2008-09-26 17:20:10 +00:00
|
|
|
ifneq (0,$(GCC_MINOR))
|
|
|
|
ifneq (1,$(GCC_MINOR))
|
|
|
|
ifneq (2,$(GCC_MINOR))
|
|
|
|
# this should only enable for 4.3.0 and later
|
2008-11-14 11:04:22 +00:00
|
|
|
# debug += -finline-small-functions -fpredictive-commoning
|
2008-09-26 17:20:10 +00:00
|
|
|
endif
|
|
|
|
endif
|
2010-05-02 23:27:30 +00:00
|
|
|
ifeq (5,$(GCC_MINOR))
|
2010-05-09 08:51:25 +00:00
|
|
|
# debug += -flto
|
2010-05-02 23:27:30 +00:00
|
|
|
endif
|
2008-09-26 17:20:10 +00:00
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2009-11-14 02:30:47 +00:00
|
|
|
OURCFLAGS=$(debug) -W -Wall -Wimplicit -Werror-implicit-function-declaration \
|
|
|
|
-Wno-char-subscripts -funsigned-char -fno-strict-aliasing -DNO_GCC_BUILTINS \
|
2008-12-19 00:53:54 +00:00
|
|
|
-DKSFORBUILD -I$(INC) -D_FORTIFY_SOURCE=2 \
|
2009-07-09 02:29:48 +00:00
|
|
|
-fjump-tables -fno-stack-protector
|
2008-12-10 11:36:53 +00:00
|
|
|
# -march=pentium3 -mtune=generic -mmmx -m3dnow -msse -mfpmath=sse
|
2006-04-13 20:47:06 +00:00
|
|
|
OURCXXFLAGS=-fno-exceptions -fno-rtti
|
2010-05-03 08:30:25 +00:00
|
|
|
LIBS=
|
2006-04-13 20:47:06 +00:00
|
|
|
ASFLAGS=-s #-g
|
|
|
|
EXESUFFIX=
|
|
|
|
|
|
|
|
include Makefile.shared
|
|
|
|
|
2006-09-10 17:40:34 +00:00
|
|
|
ENGINEOBJS=
|
|
|
|
ifeq (0,$(NOASM))
|
|
|
|
ENGINEOBJS+= $(OBJ)/a.$o
|
2006-04-13 20:47:06 +00:00
|
|
|
endif
|
|
|
|
|
2010-05-03 08:30:25 +00:00
|
|
|
ifneq ($(PLATFORM),WINDOWS)
|
|
|
|
LIBS+= -ldl -pthread
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
2006-04-13 20:47:06 +00:00
|
|
|
ENGINEOBJS+= \
|
2006-09-10 17:40:34 +00:00
|
|
|
$(OBJ)/a-c.$o \
|
2006-08-31 01:54:23 +00:00
|
|
|
$(OBJ)/baselayer.$o \
|
|
|
|
$(OBJ)/cache1d.$o \
|
|
|
|
$(OBJ)/compat.$o \
|
|
|
|
$(OBJ)/crc32.$o \
|
|
|
|
$(OBJ)/defs.$o \
|
|
|
|
$(OBJ)/engine.$o \
|
2008-12-02 10:44:39 +00:00
|
|
|
$(OBJ)/polymost.$o \
|
|
|
|
$(OBJ)/hightile.$o \
|
|
|
|
$(OBJ)/textfont.$o \
|
|
|
|
$(OBJ)/smalltextfont.$o \
|
2006-08-31 01:54:23 +00:00
|
|
|
$(OBJ)/kplib.$o \
|
2009-12-05 09:22:43 +00:00
|
|
|
$(OBJ)/quicklz.$o \
|
2006-08-31 01:54:23 +00:00
|
|
|
$(OBJ)/md4.$o \
|
|
|
|
$(OBJ)/osd.$o \
|
|
|
|
$(OBJ)/pragmas.$o \
|
2009-06-09 02:12:35 +00:00
|
|
|
$(OBJ)/scriptfile.$o \
|
2010-05-02 23:27:30 +00:00
|
|
|
$(OBJ)/nedmalloc.$o \
|
|
|
|
$(OBJ)/mutex.$o
|
2008-11-11 13:24:05 +00:00
|
|
|
|
2009-05-07 16:00:49 +00:00
|
|
|
ifeq (1,$(USE_OPENGL))
|
|
|
|
ENGINEOBJS+= $(OBJ)/mdsprite.$o
|
|
|
|
ENGINEOBJS+= $(OBJ)/glbuild.$o
|
|
|
|
endif
|
|
|
|
|
2008-05-10 01:29:37 +00:00
|
|
|
ifeq (1,$(POLYMER))
|
|
|
|
ENGINEOBJS+= $(OBJ)/polymer.$o
|
|
|
|
endif
|
2006-08-31 01:54:23 +00:00
|
|
|
|
|
|
|
EDITOROBJS=$(OBJ)/build.$o \
|
|
|
|
$(OBJ)/config.$o
|
|
|
|
|
2008-08-20 22:58:09 +00:00
|
|
|
# PLATFORM SPECIFIC SETTINGS
|
|
|
|
|
2006-04-13 20:47:06 +00:00
|
|
|
ifeq ($(PLATFORM),LINUX)
|
|
|
|
ASFLAGS+= -f elf
|
2008-12-04 00:31:16 +00:00
|
|
|
LIBS+= -lm
|
2006-04-13 20:47:06 +00:00
|
|
|
endif
|
2008-08-20 22:58:09 +00:00
|
|
|
ifeq ($(PLATFORM),DARWIN)
|
|
|
|
ENGINEOBJS += $(OBJ)/StartupWinController.editor.$o \
|
|
|
|
$(OBJ)//osxbits.$o
|
|
|
|
ASFLAGS += -f Mach-O
|
2008-08-22 05:39:13 +00:00
|
|
|
OURCFLAGS += -fno-pic
|
2008-08-20 22:58:09 +00:00
|
|
|
TARGETOPTS += -DNOASM
|
|
|
|
endif
|
2006-04-13 20:47:06 +00:00
|
|
|
ifeq ($(PLATFORM),BSD)
|
|
|
|
ASFLAGS+= -f elf
|
|
|
|
OURCFLAGS+= -I/usr/X11R6/include
|
|
|
|
LIBS+= -lm
|
|
|
|
endif
|
|
|
|
ifeq ($(PLATFORM),WINDOWS)
|
2008-11-12 04:16:41 +00:00
|
|
|
OURCFLAGS+= -DUNDERSCORES -I$(DXROOT)/include -I$(FMODROOTWIN)/inc # -I$(ENETROOT)/include
|
|
|
|
LIBS+= -lm -lwsock32 -lws2_32 -lwinmm #-L$(ENETROOT)
|
2006-04-13 20:47:06 +00:00
|
|
|
ASFLAGS+= -DUNDERSCORES -f win32
|
|
|
|
endif
|
|
|
|
ifeq ($(PLATFORM),BEOS)
|
|
|
|
ASFLAGS+= -f elf
|
|
|
|
TARGETOPTS+= -DNOASM
|
|
|
|
endif
|
|
|
|
ifeq ($(PLATFORM),SUNOS)
|
|
|
|
LIBS+= -lm
|
|
|
|
endif
|
|
|
|
ifeq ($(PLATFORM),SYLLABLE)
|
|
|
|
ASFLAGS+= -f elf
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(RENDERTYPE),SDL)
|
2006-08-31 01:54:23 +00:00
|
|
|
ENGINEOBJS+= $(OBJ)/sdlayer.$o
|
2006-04-13 20:47:06 +00:00
|
|
|
OURCFLAGS+= $(subst -Dmain=SDL_main,,$(SDLCONFIG_CFLAGS))
|
|
|
|
|
|
|
|
ifeq (1,$(HAVE_GTK2))
|
|
|
|
OURCFLAGS+= -DHAVE_GTK2 $(shell pkg-config --cflags gtk+-2.0)
|
2008-04-25 01:46:19 +00:00
|
|
|
ENGINEOBJS+= $(OBJ)/gtkbits.$o
|
|
|
|
ifeq ($(LINKED_GTK),0)
|
|
|
|
ENGINEOBJS+= $(OBJ)/dynamicgtk.$o
|
|
|
|
endif
|
2006-08-31 01:54:23 +00:00
|
|
|
EDITOROBJS+= $(OBJ)/startgtk.editor.$o
|
2006-04-13 20:47:06 +00:00
|
|
|
endif
|
|
|
|
endif
|
|
|
|
ifeq ($(RENDERTYPE),WIN)
|
2010-05-02 23:27:30 +00:00
|
|
|
ENGINEOBJS+= $(OBJ)/winlayer.$o $(OBJ)/rawinput.$o
|
2006-08-31 01:54:23 +00:00
|
|
|
EDITOROBJS+= $(OBJ)/startwin.editor.$o
|
2006-04-13 20:47:06 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (0,$(EFENCE))
|
|
|
|
LIBS+= -lefence
|
|
|
|
OURCFLAGS+= -DEFENCE
|
|
|
|
endif
|
|
|
|
|
|
|
|
OURCFLAGS+= $(BUILDCFLAGS)
|
|
|
|
|
2008-10-22 04:14:30 +00:00
|
|
|
.SILENT:
|
2006-07-01 01:40:18 +00:00
|
|
|
.PHONY: clean veryclean all utils enginelib editorlib
|
2006-04-13 20:47:06 +00:00
|
|
|
|
|
|
|
# TARGETS
|
|
|
|
|
|
|
|
UTILS=kextract$(EXESUFFIX) kgroup$(EXESUFFIX) transpal$(EXESUFFIX) wad2art$(EXESUFFIX) wad2map$(EXESUFFIX)
|
|
|
|
|
2008-10-22 04:14:30 +00:00
|
|
|
# all: $(OBJ)/$(ENGINELIB) $(OBJ)/$(EDITORLIB)
|
2006-04-13 20:47:06 +00:00
|
|
|
utils: $(UTILS)
|
|
|
|
|
2006-08-31 01:54:23 +00:00
|
|
|
enginelib: $(OBJ)/$(ENGINELIB)
|
|
|
|
$(OBJ)/$(ENGINELIB): $(ENGINEOBJS)
|
2006-04-13 20:47:06 +00:00
|
|
|
$(AR) rc $@ $^
|
|
|
|
$(RANLIB) $@
|
|
|
|
|
2006-08-31 01:54:23 +00:00
|
|
|
editorlib: $(OBJ)/$(EDITORLIB)
|
|
|
|
$(OBJ)/$(EDITORLIB): $(EDITOROBJS)
|
2006-04-13 20:47:06 +00:00
|
|
|
$(AR) rc $@ $^
|
|
|
|
$(RANLIB) $@
|
|
|
|
|
2006-08-31 01:54:23 +00:00
|
|
|
pragmacheck$(EXESUFFIX): $(OBJ)/pragmacheck.$o $(OBJ)/pragmas.$o
|
2006-04-13 20:47:06 +00:00
|
|
|
$(CC) $(subst -Dmain=app_main,,$(OURCFLAGS)) -o $@ $^
|
|
|
|
|
2009-12-12 20:14:13 +00:00
|
|
|
kextract$(EXESUFFIX): $(OBJ)/kextract.$o $(OBJ)/compat.$o $(OBJ)/nedmalloc.$o
|
2010-03-26 02:53:22 +00:00
|
|
|
$(CC) -o $@ $^ $(LIBS)
|
2009-12-12 20:14:13 +00:00
|
|
|
kgroup$(EXESUFFIX): $(OBJ)/kgroup.$o $(OBJ)/compat.$o $(OBJ)/nedmalloc.$o
|
2010-03-26 02:53:22 +00:00
|
|
|
$(CC) -o $@ $^ $(LIBS)
|
2009-12-12 20:14:13 +00:00
|
|
|
transpal$(EXESUFFIX): $(OBJ)/transpal.$o $(OBJ)/pragmas.$o $(OBJ)/compat.$o $(OBJ)/nedmalloc.$o
|
2010-03-26 02:53:22 +00:00
|
|
|
$(CC) -o $@ $^ $(LIBS)
|
2009-12-12 20:14:13 +00:00
|
|
|
wad2art$(EXESUFFIX): $(OBJ)/wad2art.$o $(OBJ)/pragmas.$o $(OBJ)/compat.$o $(OBJ)/nedmalloc.$o
|
2010-03-26 02:53:22 +00:00
|
|
|
$(CC) -o $@ $^ $(LIBS)
|
2009-12-12 20:14:13 +00:00
|
|
|
wad2map$(EXESUFFIX): $(OBJ)/wad2map.$o $(OBJ)/pragmas.$o $(OBJ)/compat.$o $(OBJ)/nedmalloc.$o
|
2010-03-26 02:53:22 +00:00
|
|
|
$(CC) -o $@ $^ $(LIBS)
|
2006-08-31 01:54:23 +00:00
|
|
|
generateicon$(EXESUFFIX): $(OBJ)/generateicon.$o $(OBJ)/kplib.$o
|
2010-03-26 02:53:22 +00:00
|
|
|
$(CC) -o $@ $^ $(LIBS)
|
2009-12-12 20:14:13 +00:00
|
|
|
cacheinfo$(EXESUFFIX): $(OBJ)/cacheinfo.$o $(OBJ)/compat.$o $(OBJ)/nedmalloc.$o
|
2010-03-26 02:53:22 +00:00
|
|
|
$(CC) -o $@ $^ $(LIBS)
|
2006-04-13 20:47:06 +00:00
|
|
|
enumdisplay$(EXESUFFIX): src/misc/enumdisplay.c
|
2010-03-26 02:53:22 +00:00
|
|
|
$(CC) -g -Os -o $@ $^ $(LIBS) -I$(DXROOT)/include -lgdi32
|
2006-08-31 01:54:23 +00:00
|
|
|
mapdump$(EXESUFFIX): $(OBJ)/mapdump.$o
|
2010-03-26 02:53:22 +00:00
|
|
|
$(CC) -o $@ $^ $(LIBS)
|
2006-04-13 20:47:06 +00:00
|
|
|
|
|
|
|
# DEPENDENCIES
|
|
|
|
include Makefile.deps
|
|
|
|
|
|
|
|
# RULES
|
2006-08-31 01:54:23 +00:00
|
|
|
$(OBJ)/%.$o: $(SRC)/%.nasm
|
2008-10-18 13:25:23 +00:00
|
|
|
$(COMPILE_STATUS)
|
2008-10-19 12:14:04 +00:00
|
|
|
if $(AS) $(ASFLAGS) $< -o $@; then $(COMPILE_OK); else $(COMPILE_FAILED); fi
|
2006-04-13 20:47:06 +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
|
2006-04-13 20:47:06 +00:00
|
|
|
|
2008-08-20 22:58:09 +00:00
|
|
|
$(OBJ)/%.$o: $(SRC)/%.m
|
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-08-20 22:58:09 +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
|
2006-04-13 20:47:06 +00:00
|
|
|
|
2008-11-11 13:24:05 +00:00
|
|
|
$(OBJ)/%.$o: $(SRC)/%.cxx
|
|
|
|
$(CXX) $(CXXFLAGS) $(OURCXXFLAGS) $(OURCFLAGS) -c $< -o $@
|
|
|
|
|
2006-08-31 01:54:23 +00:00
|
|
|
$(OBJ)/%.$o: $(SRC)/misc/%.rc
|
2008-10-18 13:25:23 +00:00
|
|
|
$(COMPILE_STATUS)
|
2008-10-19 12:14:04 +00:00
|
|
|
if $(RC) -i $< -o $@ --include-dir=$(INC) --include-dir=$(SRC); then $(COMPILE_OK); else $(COMPILE_FAILED); fi
|
2006-04-13 20:47:06 +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
|
2006-04-13 20:47:06 +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
|
2006-04-13 20:47:06 +00:00
|
|
|
|
2006-08-31 01:54:23 +00:00
|
|
|
$(OBJ)/editor_banner.$o: $(RSRC)/editor_banner.c
|
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:
|
2006-08-31 01:54:23 +00:00
|
|
|
-rm -f $(OBJ)/*
|
2006-04-13 20:47:06 +00:00
|
|
|
|
|
|
|
veryclean: clean
|
2006-11-16 03:00:03 +00:00
|
|
|
-rm -f $(ENGINELIB) $(EDITORLIB) $(UTILS)
|
2006-04-13 20:47:06 +00:00
|
|
|
|
|
|
|
.PHONY: fixlineends
|
|
|
|
fixlineends:
|
|
|
|
for a in `find . -type f \( -name '*.c' -o -name '*.h' -o -name 'Makefile*' \) \! -path '*/.svn/*'`; do \
|
|
|
|
echo Fixing $$a && tr -d "\015" < $$a > $$a.fix && mv $$a.fix $$a; \
|
|
|
|
done
|
2008-11-11 13:24:05 +00:00
|
|
|
|
|
|
|
# DO NOT DELETE
|
|
|
|
|
|
|
|
|