Adding $(LIBS) to $(CFLAGS) -> for some reason the build fails without this

This commit is contained in:
Luka Miljak 2014-03-14 18:24:01 +00:00
parent 6db2513452
commit 608a926edc

View file

@ -1,7 +1,7 @@
# target name
TARGET = moxerver
# special include directiories
# special include directories
INCDIRS = -I.
# special library directories
LIBDIRS = -L
@ -11,7 +11,7 @@ LIBS = -lpthread
# compiler and flags
CC = gcc
CFLAGS = -Wall $(INCDIRS) $(LIBDIRS)
CFLAGS = -Wall $(INCDIRS) $(LIBDIRS) $(LIBS)
# objects are .o files created from all .c files in the directory (same name)
OBJECTS = $(patsubst %.c,%.o,$(wildcard *.c))
@ -36,7 +36,7 @@ all: default
# default builds target
default: $(TARGET)
# clean removec object files and target
# clean removed object files and target
clean:
-rm -f *.o
-rm -f $(TARGET)