Added source.
This commit is contained in:
25
Makefile
Normal file
25
Makefile
Normal file
@ -0,0 +1,25 @@
|
||||
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
|
Reference in New Issue
Block a user