diff --git a/mcstrans/src/Makefile b/mcstrans/src/Makefile index ae74a16d..ea463bc1 100644 --- a/mcstrans/src/Makefile +++ b/mcstrans/src/Makefile @@ -10,12 +10,12 @@ PROG_OBJS= $(patsubst %.c,%.o,$(PROG_SRC)) PROG=mcstransd INITSCRIPT=mcstrans CFLAGS ?= -Wall -W -Wundef -Wmissing-noreturn -Wmissing-format-attribute -override CFLAGS += -I../include -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 +override CFLAGS += -I$(PREFIX)/include -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 all: $(PROG) $(PROG): $(PROG_OBJS) - $(CC) $(LDFLAGS) -pie -o $@ $^ -lselinux -lcap -lpcre $(LIBDIR)/libsepol.a + $(CC) $(LDFLAGS) -pie -o $@ $^ -lselinux -lcap -lpcre $(LIBDIR)/libsepol.a -L$(LIBDIR) %.o: %.c $(CC) $(CFLAGS) -fPIE -c -o $@ $<