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