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

Contents of /branch/debug/0.X/0.9.X/0.9.7/r3113/plugins/CDVDiso/src/Linux/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 59 - (show annotations) (download)
Tue Sep 7 06:17:51 2010 UTC (10 years, 8 months ago) by william
File size: 842 byte(s)
create working branch for pcsx2-0.9.7-r3113-debug
1
2 CC = gcc
3
4 PLUGIN = libCDVDiso.so
5 CFG = cfgCDVDiso
6 MKISO = mkiso
7 CFLAGS = -fPIC -Wall -g -I.. -I. -D__LINUX__ -D_FILE_OFFSET_BITS=64 -Wextra
8 OBJS = ../CDVDisop.o Config.o Linux.o ../libiso.o
9 CFGOBJS = conf.o interface.o support.o ${OBJS}
10 LIBS = -lz -lbz2 -lstdc++
11 CFGLIBS = $(shell pkg-config --libs gtk+-2.0) ${LIBS}
12 CFLAGS += $(shell pkg-config --cflags gtk+-2.0) -I../../../../common/include -I../../../../3rdparty
13 DEPS:= $(OBJS:.o=.d) $(CFGOBJS:.o=.d)
14
15 all: plugin cfg
16 install: all
17
18 plugin: ${OBJS}
19 rm -f ${PLUGIN}
20 ${CC} -shared -Wl,-soname,${PLUGIN} ${CFLAGS} ${OBJS} -o ${PLUGIN} ${LIBS}
21
22 cfg: ${CFGOBJS}
23 rm -f ${CFG}
24 ${CC} ${CFLAGS} ${CFGOBJS} -o ${CFG} ${CFGLIBS}
25 strip ${CFG}
26
27 clean:
28 rm -f ${OBJS} ${DEPS} ${PLUGIN} ${CFGOBJS} ${CFG}
29
30 %.o: %.c
31 ${CC} ${CFLAGS} -c -o $@ $< -MD -MF $(patsubst %.o,%.d,$@)
32
33 -include ${DEPS}

  ViewVC Help
Powered by ViewVC 1.1.22