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