diff options
Diffstat (limited to 'libsemanage/tests')
-rw-r--r-- | libsemanage/tests/Makefile | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libsemanage/tests/Makefile b/libsemanage/tests/Makefile index 885b5443..9b272247 100644 --- a/libsemanage/tests/Makefile +++ b/libsemanage/tests/Makefile @@ -5,20 +5,20 @@ LIBDIR ?= $(PREFIX)/lib SOURCES = $(wildcard *.c) # Add the required external object files here: -LIBS = ../src/libsemanage.a -L$(LIBDIR) -lselinux -lsepol +LIBS = ../src/libsemanage.a -lselinux -lsepol ########################################################################### EXECUTABLE = libsemanage-tests CFLAGS += -g -O0 -Wall -W -Wundef -Wmissing-noreturn -Wmissing-format-attribute -Wno-unused-parameter -INCLUDE = -I../src -I../include -I$(PREFIX)/include -LDFLAGS += -lcunit -lbz2 -laudit +INCLUDE = -I../src -I../include +LDLIBS += -lcunit -lbz2 -laudit OBJECTS = $(SOURCES:.c=.o) all: $(EXECUTABLE) $(EXECUTABLE): $(OBJECTS) ../src/libsemanage.a - $(CC) $(OBJECTS) $(LIBS) $(LDFLAGS) -o $@ + $(CC) $(OBJECTS) $(LIBS) $(LDFLAGS) -o $@ $(LDLIBS) %.o: %.c $(CC) $(CFLAGS) $(INCLUDE) -c $*.c -o $*.o |