mirror of
https://github.com/darlinghq/ctest.git
synced 2025-03-04 13:57:43 +00:00
23 lines
373 B
Makefile
23 lines
373 B
Makefile
UNAME=$(shell uname)
|
|
|
|
CCFLAGS=-Wall -Wextra -Wconversion -Wredundant-decls -Wno-unused-parameter -O3
|
|
CC=clang
|
|
|
|
ifeq ($(UNAME), Darwin)
|
|
LDFLAGS=-Wl,-flat_namespace,-undefined,dynamic_lookup
|
|
endif
|
|
|
|
all: test
|
|
|
|
remake: clean all
|
|
|
|
%.o: %.c ctest.h
|
|
$(CC) $(CCFLAGS) -c -o $@ $<
|
|
|
|
test: main.o ctest.h mytests.o
|
|
$(CC) $(LDFLAGS) main.o mytests.o -o test
|
|
|
|
clean:
|
|
rm -f test *.o
|
|
|