1
0
mirror of https://gitlab.com/klmp200/LO27.git synced 2024-11-19 23:03:22 +00:00
LO27/Makefile

22 lines
432 B
Makefile
Raw Normal View History

2016-11-09 10:06:10 +00:00
CXX = gcc
2016-12-10 02:55:07 +00:00
TARGET = Exe
SOURCEFILE = CellElemFunc
CFLAGS = -Wall -Werror -ansi -pedantic -fpic -I. -g
2016-11-09 10:06:10 +00:00
#Generating the executable
$(TARGET): $(SOURCEFILE).o
2016-12-10 02:55:07 +00:00
@echo "Generating the executable" $@
$(CXX) $(CFLAGS) $(SOURCEFILE).o -o $@
2016-11-09 10:06:10 +00:00
2016-12-10 02:55:07 +00:00
$(SOURCEFILE).o:
@echo "Generating objectfiles" $@
$(CXX) $(CFLAGS) -c $(SOURCEFILE).c -o $@
2016-11-09 10:06:10 +00:00
#Cleaning the executable
clean:
2016-12-10 02:55:07 +00:00
@echo "Cleaning temporary files"
2016-11-09 10:06:10 +00:00
rm -rf *.o *- *.so $(TARGET)
2016-12-10 02:55:07 +00:00
2016-11-09 10:06:10 +00:00
2016-12-10 02:55:07 +00:00