diff options
author | John Hawthorn <john.hawthorn@gmail.com> | 2009-12-20 09:18:48 -0800 |
---|---|---|
committer | John Hawthorn <john.hawthorn@gmail.com> | 2009-12-20 09:18:48 -0800 |
commit | c97d443e62bd27755fa62e3f5dc8836c80ae5fc7 (patch) | |
tree | 3a1a95b127c1b2e4773a8d2c08f6a60e833a630c /Makefile | |
parent | 2803eebe996da45dc13a593a49a2330c829829c1 (diff) | |
download | mirror-meh-c97d443e62bd27755fa62e3f5dc8836c80ae5fc7.tar.gz mirror-meh-c97d443e62bd27755fa62e3f5dc8836c80ae5fc7.tar.bz2 mirror-meh-c97d443e62bd27755fa62e3f5dc8836c80ae5fc7.zip |
add performance tests for scaling.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 16 |
1 files changed, 13 insertions, 3 deletions
@@ -1,8 +1,12 @@ +TARGET := meh +TESTTARGET := test/test + SRCFILES := $(wildcard src/*.c) OBJFILES := $(SRCFILES:%.c=%.o) DEPFILES := $(OBJFILES:%.o=%.d) -CLEANFILES := $(CLEANFILES) $(DEPFILES) $(OBJFILES) meh +TESTCLEAN := $(TESTTARGET) $(TESTTARGET).d $(TESTTARGET).o +CLEANFILES := $(CLEANFILES) $(DEPFILES) $(OBJFILES) test/test.o test/test.d test/test $(TARGET) LIBS ?= -lX11 -lXext -ljpeg -lpng -lgif PREFIX ?= /usr/local BINDIR = $(PREFIX)/bin @@ -14,7 +18,13 @@ CONFIG ?= ../config CFLAGS ?= -O3 -DNDEBUG meh: $(OBJFILES) - $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(OBJFILES) $(LIBS) + $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS) + +test: $(TESTTARGET) + ./$(TESTTARGET) + +test/test: test/test.o $(filter-out src/main.o, $(OBJFILES)) + $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS) -include $(DEPFILES) @@ -28,5 +38,5 @@ install: clean: $(RM) $(CLEANFILES) -.PHONY: clean +.PHONY: clean test |