1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-19 03:52:17 +00:00
freebsd-ports/sysutils/tss/files/patch-Makefile
John Marino cb8c760d62 sysutils/tss: document ncurses requirement (USES+=ncurses)
All link with libncurses rather than libcurses

approved by:	infrastructure blanket
2016-02-04 17:20:59 +00:00

21 lines
484 B
Plaintext

--- Makefile.orig 2006-09-22 07:48:22 UTC
+++ Makefile
@@ -2,14 +2,13 @@
EXECUTABLE = tss
SRC = src/main.c
-CFLAGS = -Wall -ansi -pedantic -lcurses -lcrypt -s #-DBSD
-COMPILE= $(CC) $(CFLAGS)
-CC = gcc
+CFLAGS += -Wall -ansi -pedantic -s -DBSD $(CPPFLAGS)
+COMPILE = $(CC) $(CFLAGS)
all: $(EXECUTABLE)
$(EXECUTABLE): $(SRC)
- $(CC) $(CFLAGS) -o $(EXECUTABLE) $(SRC)
+ $(CC) $(CFLAGS) -o $(EXECUTABLE) $(SRC) $(LDFLAGS) -lncurses -lcrypt
%.o: %.c
$(COMPILE) -o $@ $<