openbsd-ports/archivers/unrar/patches/patch-makefile_unix
2007-05-26 20:23:58 +00:00

26 lines
736 B
Plaintext

$OpenBSD: patch-makefile_unix,v 1.5 2007/05/26 20:23:58 jasper Exp $
--- makefile.unix.orig Sat Apr 30 09:00:12 2005
+++ makefile.unix Sat May 26 21:58:58 2007
@@ -93,6 +93,8 @@ OBJECTS=rar.o strlist.o strfn.o pathfn.o int64.o savep
resource.o match.o timefn.o rdwrfn.o consio.o options.o ulinks.o errhnd.o rarvm.o \
rijndael.o getbits.o sha1.o extinfo.o extract.o volume.o list.o find.o unpack.o cmddata.o
+.SUFFIXES: .cpp
+
.cpp.o:
$(COMPILE) -D$(WHAT) -c $<
@@ -101,11 +103,10 @@ all: unrar
clean:
@rm -f *.o *.bak *~
-unrar: WHAT=UNRAR
+WHAT=UNRAR
unrar: $(OBJECTS) $(UNRAR_OBJ)
@rm -f unrar
$(LINK) -o unrar $(LDFLAGS) $(OBJECTS) $(UNRAR_OBJ) $(LIBS)
- $(STRIP) unrar
sfx: WHAT=SFX_MODULE
sfx: $(OBJECTS)