diff options
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 13 |
1 files changed, 10 insertions, 3 deletions
@@ -1,6 +1,10 @@ -CFLAGS = -I. -L. -std=c99 -pedantic -Wall -Werror -O3 +CFLAGS = -I. -L. -std=c99 -pedantic -Wall -Werror -O3 -g CC = gcc LIBNAME = libctemplates.a +BIN_POSTFIX = .exe + + +TEST_1_NAME = t\test_1$(BIN_POSTFIX) $(LIBNAME): ctemplates.o fbuf.o kmp.o hashmap.o ar rc $(LIBNAME) ctemplates.o fbuf.o kmp.o hashmap.o @@ -21,8 +25,11 @@ hashmap.o: hashmap.c hashmap.h clean: rm -f *.o *.a template -test: - cd t; ./test.sh +$(TEST_1_NAME): t\test_1.c $(LIBNAME) + $(CC) $(CFLAGS) -o t\test_1.exe t\test_1.c -lctemplates + +test: $(TEST_1_NAME) + $(TEST_1_NAME) install: $(LIBNAME) cp $(LIBNAME) /usr/local/lib |
