mirror of
https://gitlab.com/klmp200/LO27.git
synced 2024-11-19 20:33:20 +00:00
22 lines
432 B
Makefile
22 lines
432 B
Makefile
CXX = gcc
|
|
TARGET = Exe
|
|
SOURCEFILE = CellElemFunc
|
|
CFLAGS = -Wall -Werror -ansi -pedantic -fpic -I. -g
|
|
|
|
#Generating the executable
|
|
$(TARGET): $(SOURCEFILE).o
|
|
@echo "Generating the executable" $@
|
|
$(CXX) $(CFLAGS) $(SOURCEFILE).o -o $@
|
|
|
|
$(SOURCEFILE).o:
|
|
@echo "Generating objectfiles" $@
|
|
$(CXX) $(CFLAGS) -c $(SOURCEFILE).c -o $@
|
|
|
|
#Cleaning the executable
|
|
clean:
|
|
@echo "Cleaning temporary files"
|
|
rm -rf *.o *- *.so $(TARGET)
|
|
|
|
|
|
|