mirror of https://github.com/vitalif/GPX
Added lib math to linking
parent
1bd6c3b20b
commit
140e5aab30
7
Makefile
7
Makefile
|
@ -1,6 +1,7 @@
|
|||
# Declaration of variables
|
||||
CC = cc
|
||||
CC_FLAGS = -w
|
||||
L_FLAGS = -lm
|
||||
|
||||
# File names
|
||||
VERSION = 1.0-rc2
|
||||
|
@ -10,11 +11,13 @@ PREFIX = /usr/local
|
|||
SOURCES = $(wildcard *.c)
|
||||
OBJECTS = $(SOURCES:.c=.o)
|
||||
|
||||
$(phony all): gpx
|
||||
all: gpx
|
||||
|
||||
.PHONY: all
|
||||
|
||||
# Main target
|
||||
gpx: $(OBJECTS)
|
||||
$(CC) $(OBJECTS) -o gpx
|
||||
$(CC) $(L_FLAGS) $(OBJECTS) -o gpx
|
||||
|
||||
# To obtain object files
|
||||
%.o: %.c
|
||||
|
|
Loading…
Reference in New Issue