mirror of
https://github.com/darlinghq/ctest.git
synced 2024-12-04 18:46:27 +00:00
22 lines
329 B
Makefile
22 lines
329 B
Makefile
UNAME=$(shell uname)
|
|
|
|
CCFLAGS=-Wall -Wextra -Wno-unused-parameter -O3
|
|
|
|
ifeq ($(UNAME), Darwin)
|
|
LDFLAGS=-Wl,-flat_namespace,-undefined,dynamic_lookup
|
|
endif
|
|
|
|
all: test
|
|
|
|
remake: clean all
|
|
|
|
%.o: %.c ctest.h
|
|
gcc $(CCFLAGS) -c -o $@ $<
|
|
|
|
test: main.o ctest.h mytests.o
|
|
gcc $(LDFLAGS) main.o mytests.o -o test
|
|
|
|
clean:
|
|
rm -f test *.o
|
|
|