home *** CD-ROM | disk | FTP | other *** search
Makefile | 1994-03-27 | 5.8 KB | 163 lines |
- # Makefile.lib.template
- #
- # by Mike Ferris
- # Part of MOKit
- # Copyright 1993, all rights reserved
- #
- # This is based at least loosely on Next's standard library make architecture
-
- # This file has been modified by Don Yacktman for use in the MiscKit,
- # with permission from Mike Ferris. Copyright (C) 1994 by Don Yacktman.
- # Redistribution and use is governed by the MiscKit license.
-
- # directory where included Makefiles are located.
- MAKEFILES = ../Makefiles
- MAKE_DIR = $(MAKEFILES)/lib
-
- include $(MAKEFILES)/MiscKit.version
-
- # other directories to check for files (colon-separated and start the
- # list with a colon
- OTHER_VPATH = :../Headers/MiscKit
-
- # **1** -LIBRARY NAME-
- # The base name of the library goes here. For example, if
- # you enter "appkit" as the name, then the library created will
- # be "libappkit.a".
- NAME = MiscKit
-
- # precomp header name
- HNAME = misckit
-
- # install destination root
- DSTROOT =
-
- # **2** -SOURCE FILES-
- # Here list the .m, .c, .psw, .pswm, .s, .l, .lm, .y, .ym, .ps and
- # .spec files. You may delete any lines that you don't use.
- # OTHER_SRCS is used for files with other suffixes that you wish
- # to be treated like source (i.e., printed with the source, copied
- # with the source, etc.). For files in OTHER_SRCS, you need to
- # specify the corresponding .o file in OTHER_SRCS_OFILES.
- MFILES = ExtendedApp.m MiscLockFile.m MiscLogFile.m MiscStopwatch.m \
- MiscString.m MiscStringComparing.m MiscStringCompat.m \
- MiscStringDebugging.m MiscStringFields.m MiscStringInsertion.m \
- MiscStringModification.m MiscStringNEXTSTEP.m MiscStringReplacing.m \
- MiscStringSearching.m MiscStringSybase.m MiscStringUNIX.m MiscTime.m \
- MiscQueue.m MiscStack.m MiscTree.m MiscPriorityQueue.m \
- MiscSearchText.m MiscColor.m MiscScreenColor.m MiscHalftoneColor.m \
- MiscSerialPort.m MiscStringPatterns.m MiscLinkedListNode.m \
- MiscLinkedList.m MiscStringArray.m MiscListExtensions.m \
- MiscSubprocess.m MiscRemoteSubprocess.m MiscObjectRecycler.m \
- MiscInfoController.m MiscInfo.m MiscOrderForm.m MiscRegistration.m \
- MiscStringRegex.m MiscBundleLoader.m MiscClassVariable.m \
- MiscNibController.m MiscList.m MiscSortedList.m MiscStorage.m \
- MiscSortedStorage.m MiscMatrix.m MiscTree.Browser.m MiscXmodem.m
- CFILES = $(NAME)Version.c MiscTBMK.c regexpr.c Miscdaemon.c
- PSWFILES =
- PSWMFILES =
- SFILES =
- LFILES =
- LMFILES =
- YFILES =
- YMFILES =
- PSFILES =
- OTHER_SRCS =
- OTHER_SRCS_OFILES =
-
- # **3** -COMMAND OPTIONS-
- # These are passed as arguments to the Objective-C compiler, pswrap,
- # as, lex, yacc. You may delete lines that you don't use.
- # All CFLAGS also get passed to Objective-C.
- # DEBUGCFLAGS is substituted for CFLAGS when "debug" is made.
- # PROFCFLAGS is substituted for CFLAGS when "profile" is made.
- # Under OBJCFLAGS, for each library that you use that supplies class
- # and message group files, you must use a -I$(OBJDIR)/XXX, where
- # XXX is the base name of the library.
-
- # Use one of the following ARCHITECTURES line to compile thin or fat
- # For default architecture:
- #ARCHITECTURES =
- #ARCHITECTURES = -arch m68k
- #ARCHITECTURES = -arch i386
- #ARCHITECTURES = -arch hppa
- # For intel and moto. Add others if you like...if you can... :-)
- ARCHITECTURES = -arch m68k -arch i386
- # For intel and moto. This'll probably useful to a few lucky slimes... :-)
- #ARCHITECTURES = -arch m68k -arch i386 -arch hppa
-
- COMMONCFLAGS = -Wall -I../Headers $(ARCHITECTURES)
- OBJCFLAGS =
-
- OPTCFLAGS = -O $(COMMONCFLAGS)
- DEBUGCFLAGS = -g -DDEBUG $(COMMONCFLAGS)
- PROFCFLAGS = -pg -g $(COMMONCFLAGS)
-
- PSWFLAGS =
- ASFLAGS =
- LFLAGS =
- YFLAGS =
-
- MVFLAGS =
- MKDIRSFLAGS = -m 755
- IFLAGS = -q -c -m 444 -o root -g wheel
- ARFLAGS = ruv
- # Note: the last libtool flag MUST be a -o so the output file is set up right!
- LIBTOOLFLAGS = -o
- RANLIBFLAGS =
-
- # **4** -INCLUDE FILES-
- # Private include files are used by the library's code, but not needed
- # by the library's users. Public include files are needed by others who
- # will use the library, and must be installed along with the library.
- PUBLIC_INCFILES = ../Headers/misckit ../Headers/daymisckit \
- ../Headers/ExtendedApp.h
- PRIVATE_INCFILES =
-
- # **5** -BY_PRODUCTS GENERATED FROM BUILDS-
- # If your build procedure creates any files other than .o files and the
- # .c and .m files left over from pswrap, you should list them here so
- # they are removed when a make clean is done.
- BY_PRODUCTS = lib*.a
-
- # **6** -INSTALLATION LOCATIONS-
- # The following directories determines where files get installed.
- # places where libraries get installed
- LIBDIR = $(DSTROOT)/LocalDeveloper/Libraries
-
- # places where headers get installed
- INCDIR = $(DSTROOT)/LocalDeveloper/Headers/$(NAME)
-
- # place where PostScript package files get installed
- PSLIBDIR = $(DSTROOT)/LocalDeveloper/Libraries/$(NAME)
-
- #this file included for standard functionality
- include $(MAKE_DIR)/Makefile.lib
-
- # **7** -ALL AND INSTALL TARGETS-
- # You must define your own all and install targets here. "all" should
- # build all products of your project. "install" should install these
- # products in the filesystem whose root is $(DSTROOT). There are certain
- # targets defined in Makefile.lib which you can use to fulfill the all
- # and install targets. These are optimized, debug, profile, shlib,
- # optimized_install, debug_install, profile_install, shlib_install,
- # and common_install.
- all:: version precomp optimized debug
-
- install:: common_install optimized_install debug_install
-
-
- # You may comment in this line to get dependencies for the include files
- # you use. To generate the dependencies, do a "make depend".
- #include Makefile.depends
-
- # any extra rules or dependencies can be added after this line
-
- version:
- ../Makefiles/buildversion $(NAME)Version.c $(NAME) $(VERSION) $(RELEASE)
-
- # I really need to make more of an effort to do this rule right.
- precomp: ../Headers/$(HNAME)/$(HNAME).h
- (cd ../Headers/$(HNAME); $(CC) $(OPTCFLAGS) $(CFLAGS) -ObjC -I..\
- -precomp $(HNAME).h -o $(HNAME).p)
-