First semi-functional version.
This commit is contained in:
parent
c33bd6ca4e
commit
0176443560
5 changed files with 37 additions and 13 deletions
6
Makefile
6
Makefile
|
@ -4,7 +4,7 @@ TARGET = moxerver
|
|||
# special include directories
|
||||
INCDIRS = -I.
|
||||
# special library directories
|
||||
LIBDIRS = -L
|
||||
LIBDIRS = -L.
|
||||
# used libraries
|
||||
#LIBS = -lm
|
||||
LIBS = -lpthread
|
||||
|
@ -20,11 +20,11 @@ HEADERS = $(wildcard *.h)
|
|||
|
||||
# all objects are built from their .c files and all headers in the directory
|
||||
%.o: %.c $(HEADERS)
|
||||
$(CC) $(CFLAGS) $(LIBS) -c $< -o $@
|
||||
$(CC) $(CFLAGS) -c $< -o $@
|
||||
|
||||
# target is built from all object files
|
||||
$(TARGET): $(OBJECTS)
|
||||
$(CC) $(CFLAGS) $(LIBS) $(OBJECTS) -o $@
|
||||
$(CC) $(OBJECTS) $(CFLAGS) -o $@
|
||||
|
||||
|
||||
# support for default, clean and all options
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue