cointoss/Makefile
2014-10-30 11:19:33 -05:00

26 lines
382 B
Makefile

CXX=gcc
CXXFLAGS= -O3 -Wall -std=gnu99
INCLUDES=
LIBS=
MV=mv
MKDIR=mkdir -p
RM=rm -rf
SRC_FILES := $(wildcard src/*.c)
OBJ_FILES := $(addprefix src/, $(notdir $(SRC_FILES:.c=.o)))
all: $(OBJ_FILES)
$(MKDIR) bin
$(CXX) $(CXXFLAGS) $(LIBS) -o bin/cointoss src/*.o
src/%.o: src/%.c
$(CXX) $(CXXFLAGS) $(INCLUDES) -c -o $@ $<
clean:
$(RM) src/*.o
fullclean: clean
$(RM) bin