You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/app-misc/leave/files/leave-fix-makefile.diff

21 lines
449 B

--- Makefile.orig 2004-10-16 23:04:50.144563171 -0400
+++ Makefile 2004-10-16 23:57:27.639495962 -0400
@@ -2,5 +2,16 @@
# $FreeBSD: /repoman/r/ncvs/src/usr.bin/leave/Makefile,v 1.5 2002/02/08 22:31:41 markm Exp $
PROG= leave
+CC ?= gcc
+CFLAGS=
+LDFLAGS=
-.include <bsd.prog.mk>
+#.include <bsd.prog.mk>
+
+all: $(PROG)
+$(PROG): leave.o
+ $(CC) $(LDFLAGS) leave.o -o $(PROG)
+leave.o:
+ $(CC) $(CFLAGS) -c leave.c
+clean:
+ rm -f $(PROG) *.o