Add Makefile
This commit is contained in:
parent
875aad86c8
commit
2a7ec6c286
1 changed files with 18 additions and 0 deletions
18
Makefile
Normal file
18
Makefile
Normal file
|
@ -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
|
||||
|
Loading…
Add table
Reference in a new issue