summaryrefslogtreecommitdiff
path: root/src/Makefile
diff options
context:
space:
mode:
authororoborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e>2008-06-28 16:38:35 +0000
committeroroborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e>2008-06-28 16:38:35 +0000
commit2d776fcd61be168e1ff0ff2e4a5e71835e7cea19 (patch)
tree7cf274897bf540d5332d446f583ffd066e4e2e1d /src/Makefile
parentb877ae23ac5d380ab3aa48d7724045cf4883b186 (diff)
- prekopanie adresarovej struktury, prva cast
git-svn-id: http://opensvn.csie.org/tuxanci_ng@77 0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e
Diffstat (limited to 'src/Makefile')
-rw-r--r--[-rwxr-xr-x]src/Makefile223
1 files changed, 25 insertions, 198 deletions
diff --git a/src/Makefile b/src/Makefile
index 13f5ba4..a54b508 100755..100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -1,202 +1,29 @@
-#CC = /usr/local/gcc/bin/gcc
CC = gcc
-
-#CFLAGS = -O2 -DSUPPORT_NET_SDL_UDP -I../include -Wall `sdl-config --cflags`
-CFLAGS = -g -O0 -std=c99 -I../include -Wall `sdl-config --cflags`
-#CFLAGS = -O2 -DDESTDIR=\"$(DESTDIR)\" `sdl-config --cflags` -I../include -Wall
-
-BUILD_DIR = .
-LIBS = `sdl-config --libs` -lSDL_image -lSDL_ttf -lSDL_mixer -lSDL_net
-
-FILES = interface.o protect.o space.o idManager.o storage.o font.o list.o modules.o\
- image.o layer.o director.o configFile.o tux.o main.o checkFront.o\
- screen.o screen_world.o shot.o myTimer.o panel.o net_multiplayer.o \
- arena.o arenaFile.o textFile.o audio.o sound.o music.o gun.o \
- item.o widget_label.o screen_mainMenu.o widget_button.o screen_analyze.o widget_textfield.o \
- widget_check.o widget_image.o widget_select.o screen_setting.o screen_gameType.o screen_choiceArena.o \
- widget_buttonimage.o screen_credits.o homeDirector.o screen_table.o \
- sdl_udp.o udp.o proto.o server.o client.o term.o keytable.o language.o game.o
-
-tuxanci-ng: $(FILES)
- $(CC) $(CFLAGS) $(LIBS) -o $(BUILD_DIR)/tuxanci-ng $(BUILD_DIR)/*.o
-
-main.o: main.c
- $(CC) $(CFLAGS) -o $(BUILD_DIR)/main.o -c main.c
-
-protect.o: protect.c
- $(CC) $(CFLAGS) -o $(BUILD_DIR)/protect.o -c protect.c
-
-hashTable.o: hashTable.c ../include/hashTable.h
- $(CC) $(CFLAGS) -o $(BUILD_DIR)/hashTable.o -c hashTable.c
-
-space.o: space.c ../include/space.h
- $(CC) $(CFLAGS) -o $(BUILD_DIR)/space.o -c space.c
-
-interface.o: interface.c ../include/interface.h
- $(CC) $(CFLAGS) -o $(BUILD_DIR)/interface.o -c interface.c
-
-storage.o: storage.c ../include/storage.h
- $(CC) $(CFLAGS) -o $(BUILD_DIR)/storage.o -c storage.c
-
-modules.o: modules.c ../include/modules.h
- $(CC) $(CFLAGS) -o $(BUILD_DIR)/modules.o -c modules.c
-
-idManager.o: idManager.c ../include/idManager.h
- $(CC) $(CFLAGS) -o $(BUILD_DIR)/idManager.o -c idManager.c
-
-checkFront.o: checkFront.c ../include/checkFront.h
- $(CC) $(CFLAGS) -o $(BUILD_DIR)/checkFront.o -c checkFront.c
-
-font.o: font.c ../include/font.h
- $(CC) $(CFLAGS) -o $(BUILD_DIR)/font.o -c font.c
-
-list.o: list.c ../include/list.h
- $(CC) $(CFLAGS) -o $(BUILD_DIR)/list.o -c list.c
-
-image.o: image.c ../include/image.h
- $(CC) $(CFLAGS) -o $(BUILD_DIR)/image.o -c image.c
-
-layer.o: layer.c ../include/layer.h
- $(CC) $(CFLAGS) -o $(BUILD_DIR)/layer.o -c layer.c
-
-director.o: director.c ../include/director.h
- $(CC) $(CFLAGS) -o $(BUILD_DIR)/director.o -c director.c
-
-configFile.o: configFile.c ../include/configFile.h
- $(CC) $(CFLAGS) -o $(BUILD_DIR)/configFile.o -c configFile.c
-
-tux.o: tux.c ../include/tux.h
- $(CC) $(CFLAGS) -o $(BUILD_DIR)/tux.o -c tux.c
-
-screen.o: screen.c ../include/screen.h
- $(CC) $(CFLAGS) -o $(BUILD_DIR)/screen.o -c screen.c
-
-screen_world.o: screen_world.c ../include/screen_world.h
- $(CC) $(CFLAGS) -o $(BUILD_DIR)/screen_world.o -c screen_world.c
-
-#wall.o: wall.c ../include/wall.h
-# $(CC) $(CFLAGS) -o $(BUILD_DIR)/wall.o -c wall.c
-
-shot.o: shot.c ../include/shot.h
- $(CC) $(CFLAGS) -o $(BUILD_DIR)/shot.o -c shot.c
-
-myTimer.o: myTimer.c ../include/myTimer.h
- $(CC) $(CFLAGS) -o $(BUILD_DIR)/myTimer.o -c myTimer.c
-
-panel.o: panel.c ../include/panel.h
- $(CC) $(CFLAGS) -o $(BUILD_DIR)/panel.o -c panel.c
-
-tcp.o: tcp.c ../include/tcp.h
- $(CC) $(CFLAGS) -o $(BUILD_DIR)/tcp.o -c tcp.c
-
-udp.o: udp.c ../include/udp.h
- $(CC) $(CFLAGS) -o $(BUILD_DIR)/udp.o -c udp.c
-
-sdl_udp.o: sdl_udp.c ../include/sdl_udp.h
- $(CC) $(CFLAGS) -o $(BUILD_DIR)/sdl_udp.o -c sdl_udp.c
-
-proto.o: proto.c ../include/proto.h
- $(CC) $(CFLAGS) -o $(BUILD_DIR)/proto.o -c proto.c
-
-server.o: server.c ../include/server.h
- $(CC) $(CFLAGS) -o $(BUILD_DIR)/server.o -c server.c
-
-client.o: client.c ../include/client.h
- $(CC) $(CFLAGS) -o $(BUILD_DIR)/client.o -c client.c
-
-network.o: network.c ../include/network.h
- $(CC) $(CFLAGS) -o $(BUILD_DIR)/network.o -c network.c
-
-net_multiplayer.o: net_multiplayer.c ../include/net_multiplayer.h
- $(CC) $(CFLAGS) -o $(BUILD_DIR)/net_multiplayer.o -c net_multiplayer.c
-
-arena.o: arena.c ../include/arena.h
- $(CC) $(CFLAGS) -o $(BUILD_DIR)/arena.o -c arena.c
-
-textFile.o: textFile.c ../include/textFile.h
- $(CC) $(CFLAGS) -o $(BUILD_DIR)/textFile.o -c textFile.c
-
-arenaFile.o: arenaFile.c ../include/arenaFile.h
- $(CC) $(CFLAGS) -o $(BUILD_DIR)/arenaFile.o -c arenaFile.c
-
-audio.o: audio.c ../include/audio.h
- $(CC) $(CFLAGS) -o $(BUILD_DIR)/audio.o -c audio.c
-
-sound.o: sound.c ../include/sound.h
- $(CC) $(CFLAGS) -o $(BUILD_DIR)/sound.o -c sound.c
-
-music.o: music.c ../include/music.h
- $(CC) $(CFLAGS) -o $(BUILD_DIR)/music.o -c music.c
-
-gun.o: gun.c ../include/gun.h
- $(CC) $(CFLAGS) -o $(BUILD_DIR)/gun.o -c gun.c
-
-item.o: item.c ../include/item.h
- $(CC) $(CFLAGS) -o $(BUILD_DIR)/item.o -c item.c
-
-screen_mainMenu.o: screen_mainMenu.c ../include/screen_mainMenu.h
- $(CC) $(CFLAGS) -o $(BUILD_DIR)/screen_mainMenu.o -c screen_mainMenu.c
-
-screen_analyze.o: screen_analyze.c ../include/screen_analyze.h
- $(CC) $(CFLAGS) -o $(BUILD_DIR)/screen_analyze.o -c screen_analyze.c
-
-screen_setting.o: screen_setting.c ../include/screen_setting.h
- $(CC) $(CFLAGS) -o $(BUILD_DIR)/screen_setting.o -c screen_setting.c
-
-screen_gameType.o: screen_gameType.c ../include/screen_gameType.h
- $(CC) $(CFLAGS) -o $(BUILD_DIR)/screen_gameType.o -c screen_gameType.c
-
-screen_choiceArena.o: screen_choiceArena.c ../include/screen_choiceArena.h
- $(CC) $(CFLAGS) -o $(BUILD_DIR)/screen_choiceArena.o -c screen_choiceArena.c
-
-screen_credits.o: screen_credits.c ../include/screen_credits.h
- $(CC) $(CFLAGS) -o $(BUILD_DIR)/screen_credits.o -c screen_credits.c
-
-widget_label.o: widget_label.c ../include/widget_label.h
- $(CC) $(CFLAGS) -o $(BUILD_DIR)/widget_label.o -c widget_label.c
-
-widget_button.o: widget_button.c ../include/widget_button.h
- $(CC) $(CFLAGS) -o $(BUILD_DIR)/widget_button.o -c widget_button.c
-
-widget_buttonimage.o: widget_buttonimage.c ../include/widget_buttonimage.h
- $(CC) $(CFLAGS) -o $(BUILD_DIR)/widget_buttonimage.o -c widget_buttonimage.c
-
-widget_textfield.o: widget_textfield.c ../include/widget_textfield.h
- $(CC) $(CFLAGS) -o $(BUILD_DIR)/widget_textfield.o -c widget_textfield.c
-
-widget_check.o: widget_check.c ../include/widget_check.h
- $(CC) $(CFLAGS) -o $(BUILD_DIR)/widget_check.o -c widget_check.c
-
-widget_image.o: widget_image.c ../include/widget_image.h
- $(CC) $(CFLAGS) -o $(BUILD_DIR)/widget_image.o -c widget_image.c
-
-widget_select.o: widget_select.c ../include/widget_select.h
- $(CC) $(CFLAGS) -o $(BUILD_DIR)/widget_select.o -c widget_select.c
-
-#teleport.o: teleport.c ../include/teleport.h
-# $(CC) $(CFLAGS) -o $(BUILD_DIR)/teleport.o -c teleport.c
-
-#pipe.o: pipe.c ../include/pipe.h
-# $(CC) $(CFLAGS) -o $(BUILD_DIR)/pipe.o -c pipe.c
-
-homeDirector.o: homeDirector.c ../include/homeDirector.h
- $(CC) $(CFLAGS) -o $(BUILD_DIR)/homeDirector.o -c homeDirector.c
-
-screen_table.o: screen_table.c ../include/screen_table.h
- $(CC) $(CFLAGS) -o $(BUILD_DIR)/screen_table.o -c screen_table.c
-
-term.o: term.c ../include/term.h
- $(CC) $(CFLAGS) -o $(BUILD_DIR)/term.o -c term.c
-
-keytable.o: keytable.c ../include/keytable.h
- $(CC) $(CFLAGS) -o $(BUILD_DIR)/keytable.o -c keytable.c
-
-language.o: language.c ../include/language.h
- $(CC) $(CFLAGS) -o $(BUILD_DIR)/language.o -c language.c
-
-game.o: game.c ../include/game.h
- $(CC) $(CFLAGS) -o $(BUILD_DIR)/game.o -c game.c
+CFLAGS = -g -O0 -std=c99 -I.. -Wall `sdl-config --cflags` -DSUPPORT_NET_UNIX_UDP
+LIBS = `sdl-config --libs` -lSDL_image -lSDL_ttf -lSDL_mixer
+
+all:
+ make -C ./audio -f Makefile CC="$(CC)" CFLAGS="$(CFLAGS)"
+ make -C ./net_unix -f Makefile CC="$(CC)" CFLAGS="$(CFLAGS)"
+ make -C ./client -f Makefile CC="$(CC)" CFLAGS="$(CFLAGS)"
+ make -C ./screen -f Makefile CC="$(CC)" CFLAGS="$(CFLAGS)"
+ make -C ./widget -f Makefile CC="$(CC)" CFLAGS="$(CFLAGS)"
+ make -C ./base -f Makefile CC="$(CC)" CFLAGS="$(CFLAGS)"
+ make -C ./modules -f Makefile CC="$(CC)" CFLAGS="$(CFLAGS)"
+ $(CC) $(CFLAGS) $(LIBS) -o tuxanci-ng base/*.o client/*.o widget/*.o screen/*.o net_unix/*.o audio/*.o
+ cp modules/*.so ../modules/
+ cp tuxanci-ng ../
clean:
- rm -rf *.o *.c~ ../include/*.h~ Makefile~
+ make -C ./base -f Makefile clean
+ make -C ./client -f Makefile clean
+ make -C ./screen -f Makefile clean
+ make -C ./widget -f Makefile clean
+ make -C ./net_unix -f Makefile clean
+ make -C ./net_sdl -f Makefile clean
+ make -C ./audio -f Makefile clean
+ make -C ./modules -f Makefile clean
+ rm -rf ../modules/*.so
+ rm tuxanci-ng
+ rm ../tuxanci-ng