home *** CD-ROM | disk | FTP | other *** search
Makefile | 1992-09-19 | 3.3 KB | 116 lines |
- #
- # Amiga GCC 2.1 Configured Makefile
- #
- #
- # DEST --- destination directory
- # EXTHDRS --- headers external to the cwd
- # HDRS --- headers which reside in the cwd
- # INCLUDES --- Include directory (ies) for files.
- # CDEFS --- Various C definitions.
- # CFLAGS --- cflags for compilation
- # LIBS --- (local) libraries for additional routines
- # EXTLIBS --- (external) libraries for additional routines
- # LINKER --- linker (typically c)
- # LINTFLAGS --- lint flags (if any)
- # MAKEFILE --- the name of this makefile (used by mkmf)
- # OBJS --- objects made from programs in the cwd
- # EXTOBJS --- objects made from programs not in the cwd
- # PRINT --- print facility to print out sources, etc.
- # PROGRAM --- the final program name
- # SRCS --- the sources which reside in the cwd
- # CSHS --- csh scripts
- # MANS --- manual pages
- # JUNKS --- junk programs which may be removed
- # OWNER --- the owner's name for installation purposes
-
- DEST =
- EXTHDRS =
- HDRS =
- INCLUDES =
- MC030DEFS = -Dmc68020 -m68020 -m68881
- CDEFS = -O2
- DEBUG =
- CFLAGS = $(INCLUDES) $(CDEFS) $(DEBUG)
- YFLAGS = -d
- LIBS =
- EXTLIBS =
- LIBFLAGS =
- CC = gcc
- LINKER = gcc
- LINTFLAGS = $(INCLUDES) $(CDEFS)
- MAKEFILE = Makefile
- OBJS = cscript.o
- EXTOBJS =
- PRINT = printfiles
- PROGRAM = cscript
- SRCS = cscript.c cprogram.h macros.h
- CSHS =
- MANS =
- DOCS =
- JUNKS = $(PROGRAM)
- DISTRIB = $(PROGRAM)
-
- # Standard Targets
- # -------- -------
- #
- # all: --- equivalent to ``make program''
- # <program> --- make the entire program; <program> == name
- # clean: --- remove all re-makeable files and junks
- # depend: --- update the dependency list.
- # diff: --- find diffs between latest and present versions
- # index: --- list all procedures/#defines (result on stdout)
- # install: --- install the final result in the destination dir
- # lint: --- lint the files (result on stdout)
- # print: --- print the sources (result on stdout)
- # program: --- equivalent to make <program>
- # tags: --- create a tags file for use with gnu
- # update: --- makes and installs program (if out of date)
- # <dest/program> --- equivalent to make update
- # archive: --- makes an Lha archive of all files in DISTRIB
- # version: --- updates version number and date.
- #
- # make install installs the result in the destination directory;
- # make update checks that the result in the destination directory is
- # up to date.
- #
-
- all: $(PROGRAM)
-
- $(PROGRAM): $(OBJS) $(LIBS) $(EXTOBJS)
- @echo "Loading $(PROGRAM) ... "
- @$(LINKER) $(CFLAGS) $(OBJS) $(EXTOBJS) $(LIBS) $(EXTLIBS) -o $(PROGRAM) $(LIBFLAGS)
- @echo "done"
-
- clean:; @delete $(OBJS) $(JUNKS) FORCE
-
- diff:; @rcsdiff -r$(VERSION) $(HDRS) $(SRCS)
-
- index:; @ctags -wx $(HDRS) $(SRCS)
-
- install: $(PROGRAM)
- @echo Installing $(PROGRAM) in $(DEST)
- @copy $(PROGRAM) $(DEST)
-
- lint:; $(CC) $(CFLAGS) -c -Wall -pedantic $(SRCS)
-
- print:; @$(PRINT) $(HDRS) $(SRCS)
-
- program: $(PROGRAM)
-
- tags: $(HDRS) $(SRCS); @etags -t $(HDRS) $(SRCS)
-
- update: $(DEST)/$(PROGRAM)
-
- archive: $(DISTRIB)
- @lha -x a $(PROGRAM).lha $(DISTRIB)
-
-
- $(DEST)/$(PROGRAM): $(SRCS) $(LIBS) $(HDRS) $(EXTHDRS)
- @make -f $(MAKEFILE) DEST=$(DEST) install clean
-
- depend:
- $(CC) -MM $(SRCS) >>Makefile
-
- ## Auto generated dependencies will appear below.
-
-