Fix a few shellisms, configure for Z80 traditional and ANSI C only
[Ack-5.5.git] / make_macros
diff --git a/make_macros b/make_macros
new file mode 100644 (file)
index 0000000..bd277c7
--- /dev/null
@@ -0,0 +1,79 @@
+# Paths:
+SRC_HOME = /home/nick/src/Ack-5.5
+TARGET_HOME = /home/nick/src/Ack-5.5/stage
+UTIL_HOME = /home/nick/src/Ack-5.5/stage
+
+# Machine independent part created?
+DO_MACHINE_INDEP = y
+
+# Target machine, only needed for fast compilers
+MACH = XXX
+
+# compiler set for target machine
+
+CC=cc#                         # compiler to be used for compiling ACK
+
+# always passed to $(CC) -c.
+COPTIONS=-O -D_EM_WSIZE=4 -D_EM_PSIZE=8 -D__XXX__
+
+# passed to $(CC) -c when compiling modules.
+LIBOPTIONS=#
+# LIBOPTIONS=-LIB -L           # when $(CC) is ACK
+
+CC_AND_MKDEP=cc-and-mkdep.all# # when $(CC) is neither ACK or SUN,
+# CC_AND_MKDEP=cc-and-mkdep.ack## when $(CC) is an ACK-derived C compiler,
+# CC_AND_MKDEP=cc-and-mkdep.sun## when $(CC) is a SUN C compiler
+
+LDOPTIONS=#                    # always passed to $(CC) when linking
+
+SUF=o#                         # suffix of files produced with $(CC) -c
+
+AR=ar#                         # archiver for Unix format objects
+# AR=aal#                      # archiver for ACK .o format objects
+# AR=arch#                     # archiver for ACK .s format objects
+
+RANLIB=ranlib#                 # when ranlib required
+# RANLIB=:#                    # when ranlib not required
+
+LIBSUF=a#                      # suffix of object libraries
+
+# compiler set for producing runnable binaries (possibly using $(UTIL_HOME)).
+# This must describe the compiler with which $(UTIL_HOME) has been compiled.
+# If $(TARGET_HOME) is identical to $(UTIL_HOME), which usually will be
+# the case, this part does not have to be changed. Otherwise (when you are
+# cross-compiling ACK), you will have to change this part. Probable
+# replacements are given in comments. Maybe the installation script
+# has already changed them, but they should be checked to be sure.
+
+UCC=$(CC)
+#UCC=cc#                       # compiler to be used
+
+UCOPTIONS=$(COPTIONS)
+#UCOPTIONS=-O#                 # always passed to $(UCC) -c.
+
+ULDOPTIONS=$(LDOPTIONS)
+#ULDOPTIONS=#                  # always passed to $(UCC) when linking
+
+USUF=$(SUF)
+#USUF=o#                       # suffix of files produced with $(UCC) -c
+
+ULIBSUF=$(LIBSUF)
+#ULIBSUF=a#                    # suffix of object libraries for $(UCC)
+
+# There are two choices for lint here: ACK lint and Unix lint.
+# The current setup is for ACK lint. If you want to use the Unix lint,
+# put '#' signs on the next 4 lines that have ACK in them.
+
+LINT=/usr/bin/lint#            # Unix lint
+LINT=$(UTIL_HOME)/bin/lint#    # ACK lint
+
+LINTOPTIONS=#                  # options always passed to lint
+
+LINTPREF=llib-l#               # prefix of unix lint libraries
+LINTPREF=#                     # ACK lint libraries do not have a prefix
+
+LINTSUF=ln#                    # suffix of Unix lint libraries
+LINTSUF=llb#                   # suffix of ACK lint libraries
+
+MK_LINT_LIB=lint-lib.unix#     # for Unix lint
+MK_LINT_LIB=lint-lib.ack#      # for ACK lint