[Change] Removed many external commands from makefile.

This commit is contained in:
Allanis 2013-12-31 07:19:53 +00:00
parent 2fc902b90b
commit de7fecbd76

View File

@ -4,6 +4,7 @@ DEBUG := 1
OS := LINUX OS := LINUX
#OS := WIN32 #OS := WIN32
#OS := MACOS
#CC = clang #CC = clang
@ -16,8 +17,7 @@ VERSIONFILE = VERSION
# OBJECTS. # OBJECTS.
APPNAME := Lephisto APPNAME := Lephisto
OBJS := $(shell find ../src/ -name '*.c' -print) OBJS := $(patsubst %.c, %.o, $(wildcard ../src/*.c))
OBJS := $(OBJS:%.c=%.o)
# CFLAGS # CFLAGS
CLUA := -I../lib/lua CLUA := -I../lib/lua
@ -66,13 +66,25 @@ LDFLAGS += -pg
endif endif
# DATA. # DATA.
DATA_AI := $(shell find ../scripts/ai/ -name '*.lua') DATA_AI := $(wildcard ../scripts/ai/*.lua) \
DATA_GFX := $(shell find ../gfx/ -name '*.png') $(wildcard ../scripts/ai/include/*.lua) \
DATA_XML := $(shell find ../dat/ -name '*.xml' -o -name '*.ttf') $(wildcard ../scipts/ai/tpl/*.lua)
DATA_SND := $(shell find ../snd/ -name '*.ogg' -o -name '*.wav') ../snd/music.lua DATA_GFX := $(wildcard ../gfx/*.png) \
DATA_MISN := $(shell find ../dat/missions/ -name '*.lua') $(wildcard ../gfx/gui/*.png) \
DATA := data $(wildcard ../gfx/logo/*.png) \
DATAFILES := $(DATA_AI) $(DATA_GFX) $(DATA_XML) $(DATA_SND) $(DATA_MISN) $(wildcard ../gfx/outfit/space/*.png) \
$(wildcard ../gfx/outfit/store/*.png) \
$(wildcard ../gfx/planet/exterior/*.png) \
$(wildcard ../gfx/planet/space/*.png) \
$(wildcard ../gfx/ship/*.png) \
$(wildcard ../gfx/spfx/*.png)
DATA_XML := $(wildcard ../dat/*.xml) $(wildcard ../dat/*.ttf)
DATA_SND := $(wildcard ../snd/music/*.ogg) \
$(wildcard ../snd/sounds/*.wav) \
../snd/music.lua
DATA_MISN := $(wildcard ../dat/missions/*.lua)
DATA := data
DATAFILES := $(DATA_AI) $(DATA_GFX) $(DATA_XML) $(DATA_SND) $(DATA_MISN)
# TARGETS. # TARGETS.
.PHONY: all clean purge .PHONY: all clean purge