openbsd-ports/news/linleech/patches/patch-Makefile

29 lines
881 B
Plaintext

$OpenBSD: patch-Makefile,v 1.3 2002/09/24 07:43:49 pvalchev Exp $
--- Makefile.orig Wed Dec 30 09:54:52 1998
+++ Makefile Tue Sep 24 01:34:52 2002
@@ -1,14 +1,13 @@
-CC=gcc
-CFLAGS=-O2
-OBJS=objs/linleech_main.o objs/linleech_slang.o \
- objs/linleech_socket.o objs/regex.o
+#CC= gcc
+CFLAGS+= -I${LOCALBASE}/include
+LDFLAGS= -L${LOCALBASE}/lib
+OBJS= linleech_main.o linleech_slang.o linleech_socket.o regex.o
+VPATH= src
-all:
- $(CC) $(CFLAGS) -c src/linleech_main.c -o objs/linleech_main.o
- $(CC) $(CFLAGS) -c src/linleech_slang.c -o objs/linleech_slang.o
- $(CC) $(CFLAGS) -c src/linleech_socket.c -o objs/linleech_socket.o
- $(CC) $(CFLAGS) -c src/regex.c -o objs/regex.o
- $(CC) $(OBJS) -o linleech -lslang
+all: linleech
+
+linleech: ${OBJS}
+ ${CC} -o $@ ${OBJS} ${LDFLAGS} -lslang -ltermcap -lm
clean:
- rm -f $(OBJS) linleech
+ rm -f ${OBJS} linleech core