openbsd-ports/news/linleech/patches/patch-Makefile
espie ea4507e6c2 FAKE=lib for libslang. Okay, so we no longer need to install libslang
at all while building.

Add a missing MODULE on gettext in slrn, someone else will fix the
configure test presumably...
2005-04-19 09:41:41 +00:00

29 lines
874 B
Plaintext

$OpenBSD: patch-Makefile,v 1.4 2005/04/19 09:41:42 espie 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${DEPBASE}/include
+LDFLAGS= -L${DEPBASE}/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