summaryrefslogtreecommitdiff
path: root/test/Makefile
blob: 10877c13c5ec9aff5e4f36217a0798a12f183886 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
CC = gcc

CFLAGS = -std=gnu99 -Wall -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