blob: f4d17708f5c96377da0a169eb2eea8c414f956b2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
--- Makefile.Linux~
+++ Makefile.Linux
@@ -30,28 +30,13 @@ LIBS += `smpeg-config --libs`
DEFS += -DUSE_FONTCONFIG
LIBS += -lfontconfig
-# recommended: OggVorbis
-DEFS += -DUSE_OGG_VORBIS
-LIBS += -logg -lvorbis -lvorbisfile
-
-# optional: Integer OggVorbis
-#DEFS += -DUSE_OGG_VORBIS -DINTEGER_OGG_VORBIS
-#LIBS += -lvorbisidec
-
# optional: support CD audio
DEFS += -DUSE_CDROM
-# optional: avifile
-DEFS += -DUSE_AVIFILE
-INCS += `avifile-config --cflags`
-LIBS += `avifile-config --libs`
-TARGET += simple_aviplay$(EXESUFFIX)
-EXT_OBJS += AVIWrapper$(OBJSUFFIX)
-
# optional: lua
DEFS += -DUSE_LUA
-INCS += -I/usr/include/lua5.1
-LIBS += -llua5.1
+INCS += -I$(LUA_INCDIR)
+LIBS += -llua-$(LUA_VER)
EXT_OBJS += LUAHandler$(OBJSUFFIX)
# optional: force screen width for PDA
@@ -62,11 +47,10 @@ EXT_OBJS += LUAHandler$(OBJSUFFIX)
# for GNU g++
-CC = g++
-LD = g++ -o
+CC = $(CXX)
+LD = $(CXX) -o
-#CFLAGS = -g -Wall -pipe -c $(INCS) $(DEFS)
-CFLAGS = -O3 -Wall -fomit-frame-pointer -pipe -c $(INCS) $(DEFS)
+CFLAGS += -Wall -c $(INCS) $(DEFS)
# for GCC on PowerPC specfied
#CC = powerpc-unknown-linux-gnu-g++
|