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
612 B

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