/[pcsx2_0.9.7]/branch/debug/0.X/0.9.X/0.9.7/r3113/plugins/CDVDiso/src/Windows/Makefile
ViewVC logotype

Annotation of /branch/debug/0.X/0.9.X/0.9.7/r3113/plugins/CDVDiso/src/Windows/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 53 - (hide annotations) (download)
Tue Sep 7 04:47:49 2010 UTC (10 years, 8 months ago) by william
Original Path: branch/r3113_0.9.7_beta_reference/plugins/CDVDiso/src/Windows/Makefile
File size: 1419 byte(s)
rename branch: r3113_0.9.7_beta to r3113_0.9.7_beta_refernce
1 william 31 #
2     # Makefile for MINGW32
3     #
4    
5    
6     all: cdvdiso
7    
8     PLUGIN = CDVDiso.dll
9    
10     CC = gcc
11     NASM = nasmw
12     RM = rm -f
13     AR = ar
14     STRIP = strip
15     RC = windres
16    
17     OPTIMIZE = -O2 -fomit-frame-pointer -finline-functions -ffast-math -fno-strict-aliasing
18     FLAGS = -D__WIN32__ -D__MINGW32__ # -DENABLE_NLS -DPACKAGE=\"pcsx2\"
19     RC1FLAGS = -d__MINGW32__
20     LIBS = -L./ -lcomctl32 -lwsock32 -lwinmm -lgdi32 -lcomdlg32 #-lintl
21     RESOBJ = cdvdiso.o
22    
23     OBJS = ../CDVDiso.o ../libiso.o
24     OBJS+= Config.o Win32.o ${RESOBJ}
25     OBJS+= ../zlib/adler32.o ../zlib/compress.o ../zlib/crc32.o ../zlib/gzio.o ../zlib/uncompr.o ../zlib/deflate.o ../zlib/trees.o \
26     ../zlib/zutil.o ../zlib/inflate.o ../zlib/infback.o ../zlib/inftrees.o ../zlib/inffast.o
27     OBJS+= ../bzip2/blocksort.o ../bzip2/bzlib.o \
28     ../bzip2/compress.o ../bzip2/crctable.o \
29     ../bzip2/decompress.o ../bzip2/huffman.o \
30     ../bzip2/randtable.o
31    
32     DEPS:= $(OBJS:.o=.d)
33    
34     CFLAGS = -Wall ${OPTIMIZE} -I. -I.. -I/usr/local/include -I../zlib -I../bzip2 ${FLAGS}
35    
36     cdvdiso: ${OBJS}
37     dllwrap --def plugin.def -o ${PLUGIN} ${OBJS} ${LIBS}
38     # ${CC} -shared -Wl,--kill-at,--output-def,plugin.def ${CFLAGS} ${OBJS} -o ${PLUGIN} ${LIBS}
39     ${STRIP} ${PLUGIN}
40    
41     .PHONY: clean cdvdiso
42    
43     clean:
44     ${RM} ${OBJS} ${DEPS} ${PCSX2}
45    
46     %.o: %.asm
47     ${NASM} ${ASMFLAGS} -o $@ $<
48    
49     %.o: %.c
50     ${CC} ${CFLAGS} -c -o $@ $< -MD -MF $(patsubst %.o,%.d,$@)
51    
52     ${RESOBJ}: CDVDiso.rc
53     ${RC} -D__MINGW32__ -I rc -O coff -o $@ -i $<
54    
55     -include ${DEPS}
56    
57    

  ViewVC Help
Powered by ViewVC 1.1.22