diff options
Diffstat (limited to 'tools/tmxcopy/Makefile')
-rw-r--r-- | tools/tmxcopy/Makefile | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/tools/tmxcopy/Makefile b/tools/tmxcopy/Makefile index 402e9e4b..975e1980 100644 --- a/tools/tmxcopy/Makefile +++ b/tools/tmxcopy/Makefile @@ -1,15 +1,18 @@ CC=g++ CFLAGS=-g -ggdb -O0 -Wall -c `pkg-config --cflags libxml-2.0` LDFLAGS=`pkg-config --libs libxml-2.0` -SOURCES=base64.cpp main.cpp map.cpp xmlutils.cpp zlibutils.cpp -OBJECTS=$(SOURCES:.cpp=.o) -EXECUTABLE=tmxcopy +SOURCES_UTILS=base64.cpp map.cpp xmlutils.cpp zlibutils.cpp +OBJECTS_UTILS=$(SOURCES_UTILS:.cpp=.o) +EXECUTABLES=tmxcopy tmx_random_fill -all: $(SOURCES) $(EXECUTABLE) +all: $(SOURCES_UTILS) $(EXECUTABLES) make clean -$(EXECUTABLE): $(OBJECTS) - $(CC) $(LDFLAGS) $(OBJECTS) -o $@ +tmxcopy: tmxcopy.o $(OBJECTS_UTILS) + $(CC) $(LDFLAGS) tmxcopy.o $(OBJECTS_UTILS) -o $@ + +tmx_random_fill: tmx_random_fill.o $(OBJECTS_UTILS) + $(CC) $(LDFLAGS) tmx_random_fill.o $(OBJECTS_UTILS) -o $@ .cpp.o: $(CC) $(CFLAGS) $< -o $@ |