Create Makefile Andrin

This commit is contained in:
romanschenk37 2022-03-23 16:26:14 +01:00 committed by GitHub Enterprise
parent d61f347663
commit ed17cd6986
1 changed files with 25 additions and 0 deletions

View File

@ -0,0 +1,25 @@
SNP_SHARED_MAKEFILE := $(if $(SNP_SHARED_MAKEFILE),$(SNP_SHARED_MAKEFILE),"~/snp/shared.mk")
TARGET := bin/triangle
SOURCES := src/triangle.c src/read.c src/rectang.c
TSTSOURCES := tests/tests.c
LIBS := -lm
include $(SNP_SHARED_MAKEFILE)
all: modul
modul: triangle.o read.o rectang.o
gcc -o modul src/triangle.o src/read.o src/rectang.o
clean:
rm -f *.o modul
triangle.o: src/triangle.c Makefile
gcc -c src/triangle.c
read.o: src/read.c src/read.h Makefile
gcc -c src/read.c
rectang.o: src/rectang.c src/rectang.h Makefile
gcc -c src/rectang.c