mirror of
https://github.com/wolfcw/libfaketime.git
synced 2026-05-17 08:36:28 +03:00
* 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>
28 lines
310 B
Makefile
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
|