Adding $(LIBS) to $(CFLAGS) -> for some reason the build fails without this
This commit is contained in:
parent
6db2513452
commit
608a926edc
1 changed files with 3 additions and 3 deletions
6
Makefile
6
Makefile
|
@ -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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue