Added lib math to linking

master
WHPThomas 2013-05-02 00:56:44 +10:00
parent 1bd6c3b20b
commit 140e5aab30
1 changed files with 5 additions and 2 deletions

View File

@ -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