add missing Makefile

This commit is contained in:
Gwenhael Goavec-Merou 2019-09-26 18:38:37 +02:00
parent ba10ae8d40
commit 5294d26702
1 changed files with 24 additions and 0 deletions

24
Makefile Normal file
View File

@ -0,0 +1,24 @@
EXEC_NAME=cycloader
SRC= $(wildcard *.cpp)
OBJS= $(SRC:.cpp=.o)
LDFLAGS=-lm -g -Wall -std=c++11 $(shell pkg-config --libs libftdipp1)
CXXFLAGS=-I./ -I ../ -g -Wall -std=c++11 $(shell pkg-config --cflags libftdipp1)
all:$(EXEC_NAME)
$(EXEC_NAME):$(OBJS)
$(CXX) -o $@ $^ $(LDFLAGS)
%.o: %.c
$(CC) $(CFLAGS) -o $@ -c $<
install:
cp -f cycloader /usr/local/bin
mkdir -p /usr/local/share/cycloader
cp -f test_sfl.svf /usr/local/share/cycloader
clean:
rm -rf *.o
rm -f $(EXEC_NAME)
rm -f *.c~ *.h~ Makefile~
rm -f out*.dat