drc: implemented STL/STR stubs (at least I think I did)
[pcsx_rearmed.git] / Makefile
index 10614ec..69c4f5e 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -65,7 +65,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