13 lines
462 B
Makefile
13 lines
462 B
Makefile
include config.mk
|
|
|
|
all: src/main.c src/printevents.c src/mkevent.c
|
|
$(CC) $(CFLAGS) $(LDFLAGS) -c src/main.c -o src/main.o
|
|
$(CC) $(CFLAGS) $(LDFLAGS) -c src/printevents.c -o src/printevents.o
|
|
$(CC) $(CFLAGS) $(LDFLAGS) -c src/mkevent.c -o src/mkevent.o
|
|
$(CC) $(CFLAGS) $(LDFLAGS) -o src/nc src/main.o src/printevents.o src/mkevent.o
|
|
|
|
install: src/nc
|
|
install src/nc $(PREFIX)/bin
|
|
install man/nc.1 $(PREFIX)/share/man/man1
|
|
gzip $(PREFIX)/share/man/man1/nc.1
|