working on test build

This commit is contained in:
Kyle Isom 2020-02-15 00:10:09 -08:00
parent 0db9a2e140
commit 120b7ad7c8
1 changed files with 3 additions and 2 deletions

View File

@ -11,7 +11,8 @@ MANDIR ?= $MANDIR
CFLAGS += -Wall -Wextra -pedantic -Wshadow -Wpointer-arith -Wcast-align CFLAGS += -Wall -Wextra -pedantic -Wshadow -Wpointer-arith -Wcast-align
CFLAGS += -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations CFLAGS += -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations
CFLAGS += -Wnested-externs -Winline -Wno-long-long -Wunused-variable CFLAGS += -Wnested-externs -Winline -Wno-long-long -Wunused-variable
CFLAGS += -Wstrict-prototypes -Werror -ansi CFLAGS += -Wstrict-prototypes -Werror -std=c99 -L/usr/local/lib
CFLAGS += -I/usr/local/include
CFLAGS += OS_CFLAGS CFLAGS += OS_CFLAGS
all: $(TARGET) all: $(TARGET)
@ -52,7 +53,7 @@ test: dirutils-test
TEST_LDFLAGS := -L/usr/local/lib TEST_LDFLAGS := -L/usr/local/lib
dirutils-test: $(TARGET) dirutils_test.o dirutils-test: $(TARGET) dirutils_test.o
$(CC) -o $@ $(TARGET) $(TEST_LDFLAGS) dirutils_test.o $(CC) -o $@ $(TEST_LDFLAGS) dirutils_test.o $(TARGET)
.c.o: .c.o:
$(CC) -c ${CFLAGS} $? $(CC) -c ${CFLAGS} $?