Files
libfaketime/test/Makefile
Lukas Fleischer 9b62bb4f38 Test suite Makefile overhaul.
* Use variables for compiler and linker flags.

* Use variables for source/object files and binaries.

* Use proper targets instead of phony targets to build the timetest
  program.

Signed-off-by: Lukas Fleischer <info@cryptocrack.de>
2011-05-10 21:43:23 +02:00

28 lines
310 B
Makefile

CC = gcc
CFLAGS = -DFAKE_STAT
LDFLAGS = -lrt
SRC = timetest.c
OBJ = ${SRC:.c=.o}
all: timetest test
.c.o:
${CC} -c ${CFLAGS} $<
timetest: ${OBJ}
${CC} -o $@ ${OBJ} ${LDFLAGS}
test: timetest
@echo
@./test.sh
clean:
@rm -f ${OBJ} timetest
distclean: clean
@echo
.PHONY: all test clean distclean