summaryrefslogtreecommitdiff
path: root/compile/linux/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'compile/linux/Makefile')
-rw-r--r--compile/linux/Makefile23
1 files changed, 11 insertions, 12 deletions
diff --git a/compile/linux/Makefile b/compile/linux/Makefile
index 03956b0..018c4bf 100644
--- a/compile/linux/Makefile
+++ b/compile/linux/Makefile
@@ -7,6 +7,7 @@ INCLUDES = -I../../includes -I../../psxdev -I../../generic/include \
-I../../generic/lib/zlib/include \
-I../../generic/lib/lua/include -I../../generic/lib/lua/includes \
-I../../mogltk/include \
+-I../.. \
`sdl-config --cflags`
CPPFLAGS = $(INCLUDES) -O4 -march=i686 -DSTDC_HEADERS -DREADLINE_STATIC -DHAVE_UNISTD_H
@@ -87,7 +88,7 @@ DALOS_OBJECTS = $(addsuffix .o, $(notdir $(basename $(COMMON_SOURCES) $(MOGLTK_S
CD_TOOL_OBJECTS = $(addsuffix .o, $(notdir $(basename $(COMMON_SOURCES)))) cd-tool.o
-all: cd-tool cd-tool-static
+all: cd-tool cd-tool-static Dalos Dalos-static
stats:
@wc $(WHOLE_SOURCES)
@@ -95,33 +96,31 @@ stats:
dist: all ../../cd-tool.lua ../../FAQ-cd.txt ../../COPYING
zip -j9 ../cd-tool-`date +%Y%m%d`-linux-dynamic.zip cd-tool ../../cd-tool.lua ../../FAQ-cd.txt ../../COPYING
zip -j9 ../cd-tool-`date +%Y%m%d`-linux-static.zip cd-tool-static ../../cd-tool.lua ../../FAQ-cd.txt ../../COPYING
- #zip -j9 ../Dalos-`date +%Y%m%d`-linux-dynamic.zip Dalos ../../COPYING
- #zip -j9 ../Dalos-`date +%Y%m%d`-linux-static.zip Dalos-static ../../COPYING
+ zip -j9 ../Dalos-`date +%Y%m%d`-linux-dynamic.zip Dalos ../../Dalos/Dalos.paq ../../COPYING
+ zip -j9 ../Dalos-`date +%Y%m%d`-linux-static.zip Dalos-static ../../Dalos/Dalos.paq ../../COPYING
Dalos: $(DALOS_OBJECTS)
- $(LD) $(LDFLAGS) -o Dalos $(DALOS_OBJECTS) -lGL -lGLU
+ $(LD) -o Dalos $(DALOS_OBJECTS) -lGL -lGLU -lreadline -lSDL -lpthread
$(STRIP) Dalos
- upx-nrv Dalos
- cat ../../Dalos/Dalos.paq >> Dalos
+ upx-nrv -9 Dalos
Dalos-static: $(DALOS_OBJECTS)
- $(LD) $(LDFLAGS) -o Dalos-static $(DALOS_OBJECTS) -lGL -lGLU -static
+ $(LD) -o Dalos-static $(DALOS_OBJECTS) -lGL -lGLU -lreadline -lSDL -lpthread -static -laa -lgpm -lncurses -lX11 -lslang -lXext -ldl -lvga -lasound -L/usr/X11R6/lib
$(STRIP) Dalos-static
- #upx-nrv Dalos-static
- cat ../../Dalos/Dalos.paq >> Dalos-static
+ upx-nrv -9 Dalos-static
cd-tool: $(CD_TOOL_OBJECTS)
$(LD) $(LDFLAGS) -o cd-tool $(CD_TOOL_OBJECTS) -lreadline -lncurses
$(STRIP) cd-tool
- upx-nrv cd-tool
+ upx-nrv -9 cd-tool
cd-tool-static: $(CD_TOOL_OBJECTS)
$(LD) $(LDFLAGS) -o cd-tool-static $(CD_TOOL_OBJECTS) -lreadline -lncurses -static
$(STRIP) cd-tool-static
- upx-nrv cd-tool-static
+ upx-nrv -9 cd-tool-static
clean:
- rm -f *.exe *.o
+ rm -f Dalos Dalos-static cd-tool cd-tool-static *.o