From 2a7ec6c28677b4108f5afac83cf44bf68f5f277d Mon Sep 17 00:00:00 2001 From: "Joseph C. Lehner" Date: Sun, 24 Jan 2016 21:56:33 +0100 Subject: [PATCH] Add Makefile --- Makefile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..4b430be --- /dev/null +++ b/Makefile @@ -0,0 +1,18 @@ +CC ?= gcc +CFLAGS = -Wall + +nmrpd: nmrp.o tftp.o main.o + $(CC) $(CFLAGS) -o nmrpd nmrp.o tftp.o main.o + +nmrp.o: nmrp.c nmrpd.h + $(CC) $(CFLAGS) -c -o nmrp.o nmrp.c + +tftp.o: tftp.c nmrpd.h + $(CC) $(CFLAGS) -c -o tftp.o tftp.c + +main.o: main.c nmrpd.h + $(CC) $(CFLAGS) -c -o main.o main.c + +clean: + rm -f nmrp.o tftp.o main.o nmrpd + -- 2.25.1