mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-19 03:52:17 +00:00
cb8c760d62
All link with libncurses rather than libcurses approved by: infrastructure blanket
21 lines
484 B
Plaintext
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 $@ $<
|