nc/Makefile

13 lines
454 B
Makefile
Raw Normal View History

2023-04-01 23:13:39 -04:00
include config.mk
2023-05-11 10:51:53 -04:00
all: src/nc.c src/printevents.c src/mkevent.c
$(CC) $(CFLAGS) $(LDFLAGS) -c src/nc.c -o src/nc.o
2023-04-11 08:34:11 -04:00
$(CC) $(CFLAGS) $(LDFLAGS) -c src/printevents.c -o src/printevents.o
$(CC) $(CFLAGS) $(LDFLAGS) -c src/mkevent.c -o src/mkevent.o
2023-05-11 10:51:53 -04:00
$(CC) $(CFLAGS) $(LDFLAGS) -o src/nc src/nc.o src/printevents.o src/mkevent.o
2023-04-01 23:13:39 -04:00
2023-04-11 08:26:02 -04:00
install: src/nc
install src/nc $(PREFIX)/bin
2023-04-14 12:43:14 -04:00
install man/nc.1 $(PREFIX)/share/man/man1
gzip $(PREFIX)/share/man/man1/nc.1