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
610 B
28 lines
610 B
CC = g++
|
|
CFLAGS = -c -Wall -std=c99
|
|
LDFLAGS =
|
|
SOURCES := main.cpp FSS.cpp
|
|
OBJECTS = $(SOURCES:.cpp=.o)
|
|
BINDIR = bin
|
|
EXECUTABLE = $(BINDIR)/FSS
|
|
#-------------------------------------------------------------------------------
|
|
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)
|