File: Makefile.sunos

package info (click to toggle)
snes9x 1.26-1
  • links: PTS
  • area: non-free
  • in suites: potato
  • size: 2,712 kB
  • ctags: 9,605
  • sloc: cpp: 40,776; asm: 27,081; ansic: 6,572; makefile: 314
file content (60 lines) | stat: -rw-r--r-- 1,295 bytes parent folder | download | duplicates (3)
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
49
50
51
52
53
54
55
56
57
58
59
60
CPUOBJ=cpuops.o cpuexec.o spc700.o
CPUDEFINES=-DSPC700_C
FXOBJ=fxinst.o fxemu.o fxdbg.o
FXDEFINES=-DEXECUTE_SUPERFX_PER_LINE

OBJECTS=$(CPUOBJ) cpu.o debug.o tile.o \
	gfx.o memmap.o snaporig.o clip.o dsp1.o \
	ppu.o dma.o snes9x.o snapshot.o apu.o soundux.o \
        cheats.o data.o unix/unix.o unix/config.o $(FXOBJ) globals.o

OBJECTS += netplay.o
NETPLAYDEFINES=-DNETPLAY_SUPPORT
SERVER_OBJECTS=server.o

OBJECTS += loadzip.o unzip/unzip.o
UNZIPDEFINES=-DUNZIP_SUPPORT

X11R5=/usr/openwin
ZLIB=../zlib-1.0.4
CCC = CC -fast -O2 +w
CCFLAGS =  -I$(X11R5)/include -DMITSHM \
-I. \
-DZLIB -I$(ZLIB) \
-DSPC700_SHUTDOWN \
-DCPU_SHUTDOWN \
-DNO_INLINE_SET_GET \
-DVAR_CYCLES \
$(FXDEFINES) \
$(CPUDEFINES) \
$(NETPLAYDEFINES) \
$(UNZIPDEFINES)

#-DDEBUGGER

.SUFFIXES: .o .cpp .c .cc .h .m .i
LDLIBS = -L$(X11R5)/lib -L$(ZLIB)

all: snes9x s9xserver

snes9x: $(OBJECTS) unix/x11.o
	$(CCC) $(INCLUDES) -o $@ $(OBJECTS) unix/x11.o $(LDLIBS) -lXext -lX11 -lz

s9xserver: $(SERVER_OBJECTS)
	$(CCC) $(INCLUDES) -o $@ $(SERVER_OBJECTS) 

.cpp.o:
	$(CCC) $(INCLUDES) -c $(CCFLAGS) $*.cpp -o $@

.cc.o:
	$(CCC) $(INCLUDES) -c $(CCFLAGS) $*.cc -o $@

.c.o:
	$(CC) $(INCLUDES) -c $(CCFLAGS) $*.c -o $@

clean:
	rm -f $(OBJECTS) unix/svga.o unix/x11.o

#release: CCFLAGS += -DNO_DEBUGGER

release: clean all