File: Makefile.irix

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 (50 lines) | stat: -rw-r--r-- 1,131 bytes parent folder | download | duplicates (4)
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
OBJECTS=cpu.o cpuops.o cpuexec.o debug.o gfx.o tile.o memmap.o \
	ppu.o dma.o snes9x.o snapshot.o snaporig.o spc700.o apu.o soundux.o \
        cheats.o data.o globals.o clip.o dsp1.o \
	fxinst.o \
	fxemu.o fxdbg.o unix.o

X11R5=/usr
#ZLIB=../zlib-1.0.4
#CCC = CC -fast -O3 +w
#CCC = gcc -fast -O3 +w
LD = CC
CCC = DCC -O3 +w
CCFLAGS =  -I$(X11R5)/include -DMITSHM \
-I. \
-DSPC700_SHUTDOWN \
-DCPU_SHUTDOWN \
-DNO_INLINE_SET_GET \
-DVAR_CYCLES
#-DZLIB -I$(ZLIB) \

#-DEXECUTE_SUPERFX_PER_LINE
#-DDEBUGGER
#-DNO_INLINE_SET_GET
#-DVAR_CYCLES
#-DCPU_SHUTDOWN
#-DSPC700_SHUTDOWN

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

all: snes9x

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

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

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

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

#release: CCFLAGS += -DNO_DEBUGGER

release: clean all