You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
614 B

8 years ago
CC = g++
CFLAGS = -c -Wall -std=c99
LDFLAGS =
SOURCES := main.cpp FSSNW.cpp
OBJECTS = $(SOURCES:.cpp=.o)
BINDIR = bin
EXECUTABLE = $(BINDIR)/FSSNW
#-------------------------------------------------------------------------------
ifdef DEBUG
CFLAGS += -DDEBUG=1
endif
#-------------------------------------------------------------------------------
all: $(SOURCES) $(EXECUTABLE)
$(EXECUTABLE): $(OBJECTS)
-mkdir -p $(BINDIR)
$(CC) $(LDFLAGS) $(OBJECTS) -o $@
#-------------------------------------------------------------------------------
.c.o:
$(CC) $(CFLAGS) $< -o $@
clean:
rm -f *.o
rm -r $(BINDIR)