1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-11 02:50:24 +00:00
freebsd-ports/x11-toolkits/xview/files/patch-Imakefile
Pav Lucistnik d2c12aa0df - Unbreak xview-clients on FreeBSD 5.X and newer
Reported by:	krismail
Approved by:	portmgr (kris)
2005-08-11 13:20:12 +00:00

68 lines
2.1 KiB
Plaintext

--- Imakefile.orig Sun Jun 26 03:47:22 1994
+++ Imakefile Thu Aug 11 14:26:34 2005
@@ -4,8 +4,8 @@
/**/# Top level Imakefile for ProductNameAndRelease
/**/# @(#)Imakefile 1.7 1/7/92 SMI
-CC = cc
-CFLAGS = -O
+CC ?= cc
+CFLAGS += -fstrength-reduce -fpcc-struct-return
#define IHaveSubdirs
#define PassCDebugFlags
@@ -13,14 +13,21 @@
WORLDOPTS =
/**/# If you want to make only the library, then start the build in the lib
/**/# subdirectory. Be sure to do a 'make includes' in images and bitmaps first.
- COREDIRS = lib images bitmaps misc util
+ COREDIRS = lib images bitmaps misc util config
#if InstallOpenLookFonts
FONTSDIR = fonts
#else
FONTSDIR =
#endif
CLIENTSDIR = clients
- SUBDIRS = $(COREDIRS) $(FONTSDIR)
+.ifdef DOCLIENTS
+ SUBDIRS = $(CLIENTSDIR)
+.else
+ SUBDIRS = $(COREDIRS) $(FONTSDIR)
+.endif
+.ifdef WITHDOCSUBDIR
+SUBDIRS+=doc
+.endif
/**/# even if these subdirs are not included in the general rules, be sure to
/**/# do a make clean in them.
CLEAN_SUBDIRS = clients contrib doc fonts bitmaps images lib misc util
@@ -59,11 +66,11 @@
@echo ""
@date
@echo ""
- $(MAKE) $(MFLAGS) 'SUBDIRS=$(SUBDIRS) doc' Makefiles
- $(MAKE) $(MFLAGS) 'CLEAN_SUBDIRS=$(SUBDIRS)' clean
- $(MAKE) $(MFLAGS) 'SUBDIRS=$(SUBDIRS)' includes
- $(MAKE) $(MFLAGS) 'SUBDIRS=$(SUBDIRS)' depend
- $(MAKE) $(MFLAGS) 'SUBDIRS=$(SUBDIRS)' 'CDEBUGFLAGS=$(CDEBUGFLAGS)' $(WORLDOPTS)
+ $(MAKE) $(MFLAGS) -DWITHDOCSUBDIR Makefiles
+ $(MAKE) $(MFLAGS) clean
+ $(MAKE) $(MFLAGS) includes
+ $(MAKE) $(MFLAGS) depend
+ $(MAKE) $(MFLAGS) 'CDEBUGFLAGS=$(CDEBUGFLAGS)' $(WORLDOPTS)
@echo ""
@date
@echo ""
@@ -96,9 +103,9 @@
@echo ""
@date
@echo ""
- $(MAKE) $(MFLAGS) 'SUBDIRS=$(CLIENTSDIR)' Makefiles
- $(MAKE) $(MFLAGS) 'SUBDIRS=$(CLIENTSDIR)' depend
- $(MAKE) $(MFLAGS) 'SUBDIRS=$(CLIENTSDIR)' 'CDEBUGFLAGS=$(CDEBUGFLAGS)' $(WORLDOPTS)
+ $(MAKE) $(MFLAGS) -DDOCLIENTS Makefiles
+ $(MAKE) $(MFLAGS) -DDOCLIENTS depend
+ $(MAKE) $(MFLAGS) -DDOCLIENTS 'CDEBUGFLAGS=$(CDEBUGFLAGS)' $(WORLDOPTS)
@echo ""
@date
@echo ""