mirror of
https://github.com/PCSX2/pcsx2.git
synced 2026-10-03 09:45:48 +02:00
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@597 96395faa-99c1-11dd-bbfe-3dabce05a288
24 lines
460 B
Makefile
24 lines
460 B
Makefile
|
|
CC = gcc
|
|
|
|
PLUGIN = libDEV9null.so
|
|
CFLAGS+= -fPIC -Wall -O2 -fomit-frame-pointer -D__LINUX__ -I../../../common/include
|
|
OBJS = dev9null.o
|
|
DEPS:= $(OBJS:.o=.d)
|
|
|
|
all: plugin
|
|
install: all
|
|
|
|
plugin: ${OBJS}
|
|
rm -f ${PLUGIN}
|
|
gcc -shared -Wl,-soname,${PLUGIN} ${CFLAGS} ${OBJS} -o ${PLUGIN} ${LIBS}
|
|
strip --strip-unneeded --strip-debug ${PLUGIN}
|
|
|
|
clean:
|
|
rm -f ${OBJS} ${DEPS}
|
|
|
|
%.o: %.c
|
|
${CC} ${CFLAGS} -c -o $@ $< -MD -MF $(patsubst %.o,%.d,$@)
|
|
|
|
-include ${DEPS}
|