X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=pcsx_rearmed.git;a=blobdiff_plain;f=Makefile;h=b712718ba65c5f4d32e009bd8b195b1834e0e420;hp=10614ec63aa119e1a6278583eea3dcf1e06b9417;hb=47bf65ab6163fb70eb2ad309c9487229832bcaed;hpb=ccf51908872ddeb811b1245e6751600b860d90b5 diff --git a/Makefile b/Makefile index 10614ec6..b712718b 100644 --- a/Makefile +++ b/Makefile @@ -47,9 +47,12 @@ ifdef X11 LDFLAGS += -lX11 -lXv OBJS += plugins/dfxvideo/draw.o else -CFLAGS += -D_MACGL # disables X in dfxvideo +plugins/dfxvideo/%.o: CFLAGS += -D_MACGL # disables X in dfxvideo OBJS += plugins/dfxvideo/draw_fb.o endif +# cdrcimg +plugins/cdrcimg/%.o: CFLAGS += -Wall +OBJS += plugins/cdrcimg/cdrcimg.o # gui OBJS += gui/Config.o gui/Plugin.o @@ -65,7 +68,18 @@ OBJS += frontend/plat_omap.o else OBJS += frontend/plat_dummy.o endif +ifdef PCNT +CFLAGS += -DPCNT +endif frontend/%.o: CFLAGS += -Wall -DIN_EVDEV +frontend/menu.o: frontend/revision.h + +frontend/revision.h: FORCE + @(git describe || echo) | sed -e 's/.*/#define REV "\0"/' > $@_ + @diff -q $@_ $@ > /dev/null 2>&1 || cp $@_ $@ + @rm $@_ +.PHONY: FORCE + $(TARGET): $(OBJS) $(CC) -o $@ $^ $(LDFLAGS) -Wl,-Map=$@.map