Create Makefile Andrin
This commit is contained in:
parent
d61f347663
commit
ed17cd6986
|
@ -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
|
Loading…
Reference in New Issue