adding -lm flag to include math library.
This commit is contained in:
parent
0678b8cb10
commit
fa2e2afe4a
|
|
@ -1,6 +1,6 @@
|
||||||
#compiler flags: -Wall Warnings all, -g gdb debug markings,
|
#compiler flags: -Wall Warnings all, -g gdb debug markings,
|
||||||
CFLAGS=-Wall -O
|
CFLAGS=-Wall -O
|
||||||
LDFLAGS= -llua -lusb-1.0 -Lsource/lua
|
LDFLAGS= -llua -lusb-1.0 -Lsource/lua -lm
|
||||||
INCLUDE= -I ./include -I ../shared
|
INCLUDE= -I ./include -I ../shared
|
||||||
LDFLAGS_WINDOWS= -L ./winlib $(LDFLAGS)
|
LDFLAGS_WINDOWS= -L ./winlib $(LDFLAGS)
|
||||||
LDFLAGS_UNIX= -lm $(LDFLAGS)
|
LDFLAGS_UNIX= -lm $(LDFLAGS)
|
||||||
|
|
@ -35,6 +35,9 @@ all: liblua $(DEPS) $(OBJECTS)
|
||||||
unix: liblua $(DEPS) $(OBJECTS)
|
unix: liblua $(DEPS) $(OBJECTS)
|
||||||
$(CC) $(INCLUDE) $(OBJECTS) -o $(TARGET) $(CFLAGS) $(LDFLAGS_UNIX)
|
$(CC) $(INCLUDE) $(OBJECTS) -o $(TARGET) $(CFLAGS) $(LDFLAGS_UNIX)
|
||||||
|
|
||||||
|
linux:
|
||||||
|
gcc source/inlprog.c source/usb_operations.c -o inlretro -lusb-1.0 -lm -L lua include
|
||||||
|
|
||||||
# "make debug" will build program with debug print messages
|
# "make debug" will build program with debug print messages
|
||||||
# -DDEBUG show debug logs
|
# -DDEBUG show debug logs
|
||||||
# -g build with gdb debug tags
|
# -g build with gdb debug tags
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue