lsnes/src/util/Makefile
Ilari Liusvaara d45b316380 Refactor makefile
Refactor the makefile and move some code files to more logical places.
2012-02-06 05:38:51 +02:00

16 lines
309 B
Makefile

OBJECTS=$(patsubst %.cpp,%.$(OBJECT_SUFFIX),$(wildcard *.cpp))
.PRECIOUS: %.$(OBJECT_SUFFIX)
__all_files__: $(OBJECTS)
@true
%.$(OBJECT_SUFFIX): %.cpp
$(REALCC) -c -o $@ $< -I../../include $(CFLAGS)
touch $(patsubst %.$(OBJECT_SUFFIX),%.ldflags,$^)
precheck:
@true
clean:
rm -f $(OBJECTS) *.ldflags