openbsd-ports/archivers/par1cmdline/patches/patch-Makefile
2010-05-21 22:43:14 +00:00

27 lines
659 B
Plaintext

$OpenBSD: patch-Makefile,v 1.3 2010/05/21 22:43:14 jasper Exp $
--- Makefile.orig Sat Nov 17 10:39:52 2001
+++ Makefile Sat Jul 3 18:15:34 2004
@@ -1,17 +1,9 @@
+OBJS = backend.o checkpar.o makepar.o rwpar.o rs.o md5.o fileops.o main.o readoldpar.o interface.o ui_text.o
-CFLAGS=-g -W -Wall -Wno-unused -O2
+.c.o:
+ ${CC} ${CFLAGS} -c -Wall $< -o $@
-par: backend.o checkpar.o makepar.o rwpar.o rs.o md5.o fileops.o main.o readoldpar.o interface.o ui_text.o
- $(CC) -o $@ $^
-
-clean:
- rm -f core par par.exe *.o
-
all: par
-par.exe:
- make clean
- make CC="dos-gcc -s"
-
-install: par
- install par ${HOME}/bin/
+par: $(OBJS)
+ ${CC} -o par ${OBJS}