changeset 609:bdd227f8e295

Initial revision
author neelin <neelin>
date Fri, 23 Sep 1994 16:45:07 +0000
parents 9b72df78d3e4
children c61b2fcb9ea6
files progs/mincconcat/Makefile progs/mincreshape/Makefile
diffstat 2 files changed, 144 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
new file mode 100644
--- /dev/null
+++ b/progs/mincconcat/Makefile
@@ -0,0 +1,66 @@
+# --------------------------------------------------------------------
+#
+# MINC Makefile
+#
+
+ROOT = ../..
+include $(ROOT)/Make_machine_specific
+include $(ROOT)/Make_configuration
+
+# Executable names
+PROGS    = mincconcat
+EXTRA_OBJS = 
+HEADERS  = 
+CDEFINES = -DDEBUG# cpp defines
+LDOPT    = $(PROG_LDOPT)
+
+# --------------------------------------------------------------------
+
+CFLAGS    = $(CDEFINES) $(INCLUDES) $(OPT)# CFLAGS and LINTFLAGS should
+LINTFLAGS = $(CDEFINES) $(INCLUDES)#        be same, except for -g/-O
+
+PROG_OBJ  = $(PROGS:=.o)#                 list of objects
+LINT_LIST = $(PROG_OBJ:.o=.ln)
+LINT_EXTRA = $(EXTRA_OBJS:.o=.ln)
+LINT_LIST_EXE = $(LINT_LIST:.ln=.)#       list of executable names to lint
+
+# --------------------------------------------------------------------
+
+default: build
+
+all: build lint
+
+build: $(PROGS)
+
+#Dependency on Makefile
+$(PROG_OBJ) $(LINT_LIST) $(EXTRA_OBJS) $(LINT_EXTRA) : Makefile
+
+.c.ln:#                                   defines the rule for creating .ln
+	lint $(LINTFLAGS) -c $< -o $@
+
+.c.o:#                                    defines the rule for creating .o
+	$(CC) $(CFLAGS) -c $< -o $@
+
+#Dependency of .o and .ln on .h
+$(PROG_OBJ) $(EXTRA_OBJS) : $(HEADERS)
+
+$(LINT_LIST) $(LINT_EXTRA) : $(HEADERS)
+
+# How to make executables
+$(PROGS) : $$@.o $(EXTRA_OBJS) $(CC_PROG_LIB) $(CC_MINC_LIB)
+	$(CC) $@.o -o $@ $(EXTRA_OBJS) $(LDOPT)
+
+#  how to lint the executable source
+lint: $(LINT_LIST_EXE)
+
+$(LINT_LIST_EXE) : $$@ln $(LINT_EXTRA) $(LINT_PROG_LIB) $(LINT_MINC_LIB)
+	lint -u $(LINTFLAGS) $@ln $(LINT_EXTRA) $(LINT_PROG_LIB) $(LINT_MINC_LIB)
+
+# Remove all derived files in this directory
+clean:
+	$(RM) $(RM_FLAGS) $(LINT_LIST) $(PROGS) $(PROG_OBJ) \
+      $(LINT_EXTRA) $(EXTRA_OBJS)
+
+install:
+	$(CP) $(CP_FLAGS) $(PROGS) $(INSTALL_BINDIR)
+
new file mode 100644
--- /dev/null
+++ b/progs/mincreshape/Makefile
@@ -0,0 +1,78 @@
+# --------------------------------------------------------------------
+#
+# MINC Makefile
+#
+
+ROOT = ../..
+include $(ROOT)/Make_machine_specific
+include $(ROOT)/Make_configuration
+
+# Executable names
+PROGS    = mincreshape
+EXTRA_OBJS = nd_loop.o
+HEADERS  = $(PROGS:=.h)
+MANSECT  = 1
+CDEFINES = -DDEBUG#                        cpp defines
+LDOPT    = $(PROG_LDOPT)
+
+# --------------------------------------------------------------------
+
+CFLAGS    = $(CDEFINES) $(INCLUDES) $(OPT)# CFLAGS and LINTFLAGS should
+LINTFLAGS = $(CDEFINES) $(INCLUDES)#        be same, except for -g/-O
+
+PROG_OBJ  = $(PROGS:=.o)#                 list of objects
+LINT_LIST = $(PROG_OBJ:.o=.ln)
+LINT_EXTRA= $(EXTRA_OBJS:.o=.ln)
+LINT_LIST_EXE = $(LINT_LIST:.ln=.)#       list of executable names to lint
+MANPAGES = $(PROGS).$(MANSECT)
+
+# --------------------------------------------------------------------
+
+#Suffixes for man pages
+.SUFFIXES: .1 .man1 .3 .man3
+
+default: build
+
+all: build lint
+
+build: $(PROGS) man
+
+man: $(MANPAGES)
+
+#Dependency on Makefile
+$(PROG_OBJ) $(LINT_LIST) $(EXTRA_OBJS) $(LINT_EXTRA) : Makefile
+
+.c.ln:#                                   defines the rule for creating .ln
+	lint $(LINTFLAGS) -c $< -o $@
+
+.c.o:#                                    defines the rule for creating .o
+	$(CC) $(CFLAGS) -c $< -o $@
+
+#Dependency of .o and .ln on .h
+$(PROG_OBJ) $(EXTRA_OBJS) : $(HEADERS)
+
+$(LINT_LIST) $(LINT_EXTRA) : $(HEADERS)
+
+# How to make executables
+$(PROGS) : $$@.o $(EXTRA_OBJS) $(CC_PROG_LIB) $(CC_MINC_LIB)
+	$(CC) -o $@ $@.o $(EXTRA_OBJS) $(LDOPT)
+
+#  how to lint the executable source
+lint: $(LINT_LIST_EXE)
+
+$(LINT_LIST_EXE) : $$@ln $(LINT_EXTRA) $(LINT_PROG_LIB) $(LINT_MINC_LIB)
+	lint -u $(LINTFLAGS) $@ln $(LINT_EXTRA) $(LINT_PROG_LIB) $(LINT_MINC_LIB)
+
+# how to make man pages
+.man1.1:
+#	$(NROFF) $(NROFF_FLAGS) $< > $@
+
+# Remove all derived files in this directory
+clean:
+	$(RM) $(RM_FLAGS) $(LINT_LIST) $(PROGS) $(PROG_OBJ) \
+	            $(EXTRA_OBJS) $(LINT_EXTRA) $(MANPAGES)
+
+install:
+	$(CP) $(CP_FLAGS) $(PROGS) $(INSTALL_BINDIR)
+	$(CP) $(CP_FLAGS) $(MANPAGES) $(INSTALL_MANDIR)$(MANSECT)
+