mirror of https://github.com/PCSX2/pcsx2.git
36 lines
816 B
Makefile
36 lines
816 B
Makefile
|
|
PLUGIN = libUSBnull.so
|
|
CFG = cfgUSBnull
|
|
CFLAGS+= -fPIC -Wall -I. -I.. -O3 -fomit-frame-pointer -fno-strict-aliasing
|
|
OBJS = ../USB.o
|
|
OBJS+= Config.o Linux.o
|
|
CFGOBJS = conf.o interface.o support.o
|
|
DEPS:= $(OBJS:.o=.d)
|
|
CFGDEPS:= $(CFGOBJS:.o=.d)
|
|
LIBS = -lpthread
|
|
CFLAGS+= $(shell pkg-config --cflags gtk+-2.0) -D__LINUX__
|
|
CFGLIBS = $(shell pkg-config --libs gtk+-2.0)
|
|
|
|
CC = gcc
|
|
|
|
all: plugin cfg
|
|
install: all
|
|
|
|
plugin: ${OBJS}
|
|
# rm -f ${PLUGIN}
|
|
${CC} -shared -Wl,-soname,${PLUGIN} ${CFLAGS} ${OBJS} -o ${PLUGIN} ${LIBS}
|
|
strip --strip-unneeded --strip-debug ${PLUGIN}
|
|
|
|
cfg: ${CFGOBJS}
|
|
# rm -f ${CFG}
|
|
${CC} ${CFLAGS} ${CFGOBJS} -o ${CFG} ${CFGLIBS}
|
|
strip ${CFG}
|
|
|
|
clean:
|
|
rm -f ${OBJS} ${CFGOBJS} ${CFGDEPS} ${PLUGIN} ${CFG}
|
|
|
|
%.o: %.c
|
|
${CC} ${CFLAGS} -c -o $@ $< -MD -MF $(patsubst %.o,%.d,$@)
|
|
|
|
#-include ${DEPS}
|