pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/bootstrap/mods/mk Primordial sys.mk for Interix.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/0c58a5a22cca
branches:  trunk
changeset: 470731:0c58a5a22cca
user:      tv <tv%pkgsrc.org@localhost>
date:      Thu Mar 11 17:28:11 2004 +0000

description:
Primordial sys.mk for Interix.

diffstat:

 bootstrap/mods/mk/Interix.sys.mk |  194 +++++++++++++++++++++++++++++++++++++++
 1 files changed, 194 insertions(+), 0 deletions(-)

diffs (198 lines):

diff -r 32b70312e50e -r 0c58a5a22cca bootstrap/mods/mk/Interix.sys.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/bootstrap/mods/mk/Interix.sys.mk  Thu Mar 11 17:28:11 2004 +0000
@@ -0,0 +1,194 @@
+#      $NetBSD: Interix.sys.mk,v 1.1 2004/03/11 17:28:11 tv Exp $
+
+unix?=         We run Unix
+OS?=           Interix
+
+.SUFFIXES: .out .a .ln .o .s .S .c .cc .cpp .cxx .C .F .f .r .y .l .cl .p .h
+.SUFFIXES: .sh .m4
+
+.LIBS:         .a
+
+AR?=           ar
+ARFLAGS?=      rl
+RANLIB?=       ranlib
+
+AS?=           as
+AFLAGS?=
+COMPILE.s?=    ${CC} ${AFLAGS} -c
+LINK.s?=       ${CC} ${AFLAGS} ${LDFLAGS}
+COMPILE.S?=    ${CC} ${AFLAGS} ${CPPFLAGS} -c -traditional-cpp
+LINK.S?=       ${CC} ${AFLAGS} ${CPPFLAGS} ${LDFLAGS}
+
+# Unless told otherwise, assume GNU CC
+CC?=           gcc -D_ALL_SOURCE
+
+DBG?=          -O
+
+CFLAGS?=       ${DBG}
+COMPILE.c?=    ${CC} ${CFLAGS} ${CPPFLAGS} -c
+LINK.c?=       ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}
+
+CXX?=          g++
+CXXFLAGS?=     ${CFLAGS}
+COMPILE.cc?=   ${CXX} ${CXXFLAGS} ${CPPFLAGS} -c
+LINK.cc?=      ${CXX} ${CXXFLAGS} ${CPPFLAGS} ${LDFLAGS}
+
+OBJC?=         ${CC}
+OBJCFLAGS?=    ${CFLAGS}
+COMPILE.m?=    ${OBJC} ${OBJCFLAGS} ${CPPFLAGS} -c
+LINK.m?=       ${OBJC} ${OBJCFLAGS} ${CPPFLAGS} ${LDFLAGS}
+
+CPP?=          cpp
+CPPFLAGS?=     
+
+FC?=           f77
+FFLAGS?=       -O
+RFLAGS?=
+COMPILE.f?=    ${FC} ${FFLAGS} -c
+LINK.f?=       ${FC} ${FFLAGS} ${LDFLAGS}
+COMPILE.F?=    ${FC} ${FFLAGS} ${CPPFLAGS} -c
+LINK.F?=       ${FC} ${FFLAGS} ${CPPFLAGS} ${LDFLAGS}
+COMPILE.r?=    ${FC} ${FFLAGS} ${RFLAGS} -c
+LINK.r?=       ${FC} ${FFLAGS} ${RFLAGS} ${LDFLAGS}
+
+INSTALL?=      ${LOCALBASE}/bin/install-sh
+
+LEX?=          lex
+LFLAGS?=
+LEX.l?=                ${LEX} ${LFLAGS}
+
+LD?=           ld
+LDFLAGS?=
+
+LINT?=         lint
+LINTFLAGS?=    -chapbxzF
+
+LORDER?=       lorder
+
+MAKE?=         make
+
+NM?=           nm
+
+PC?=           pc
+PFLAGS?=
+COMPILE.p?=    ${PC} ${PFLAGS} ${CPPFLAGS} -c
+LINK.p?=       ${PC} ${PFLAGS} ${CPPFLAGS} ${LDFLAGS}
+
+SHELL?=                sh
+
+SIZE?=         size
+
+TSORT?=        tsort
+
+YACC?=         yacc
+YFLAGS?=
+YACC.y?=       ${YACC} ${YFLAGS}
+
+# C
+.c:
+       ${LINK.c} -o ${.TARGET} ${.IMPSRC} ${LDLIBS}
+.c.o:
+       ${COMPILE.c} ${.IMPSRC}
+.c.a:
+       ${COMPILE.c} ${.IMPSRC}
+       ${AR} ${ARFLAGS} $@ $*.o
+       rm -f $*.o
+.c.ln:
+       ${LINT} ${LINTFLAGS} ${CPPFLAGS:M-[IDU]*} -i ${.IMPSRC}
+
+# C++
+.cc .cpp .cxx .C:
+       ${LINK.cc} -o ${.TARGET} ${.IMPSRC} ${LDLIBS}
+.cc.o .cpp.o .cxx.o .C.o:
+       ${COMPILE.cc} ${.IMPSRC}
+.cc.a .cpp.a .cxx.a .C.a:
+       ${COMPILE.cc} ${.IMPSRC}
+       ${AR} ${ARFLAGS} $@ $*.o
+       rm -f $*.o
+
+# Fortran/Ratfor
+.f:
+       ${LINK.f} -o ${.TARGET} ${.IMPSRC} ${LDLIBS}
+.f.o:
+       ${COMPILE.f} ${.IMPSRC}
+.f.a:
+       ${COMPILE.f} ${.IMPSRC}
+       ${AR} ${ARFLAGS} $@ $*.o
+       rm -f $*.o
+
+.F:
+       ${LINK.F} -o ${.TARGET} ${.IMPSRC} ${LDLIBS}
+.F.o:
+       ${COMPILE.F} ${.IMPSRC}
+.F.a:
+       ${COMPILE.F} ${.IMPSRC}
+       ${AR} ${ARFLAGS} $@ $*.o
+       rm -f $*.o
+
+.r:
+       ${LINK.r} -o ${.TARGET} ${.IMPSRC} ${LDLIBS}
+.r.o:
+       ${COMPILE.r} ${.IMPSRC}
+.r.a:
+       ${COMPILE.r} ${.IMPSRC}
+       ${AR} ${ARFLAGS} $@ $*.o
+       rm -f $*.o
+
+# Pascal
+.p:
+       ${LINK.p} -o ${.TARGET} ${.IMPSRC} ${LDLIBS}
+.p.o:
+       ${COMPILE.p} ${.IMPSRC}
+.p.a:
+       ${COMPILE.p} ${.IMPSRC}
+       ${AR} ${ARFLAGS} $@ $*.o
+       rm -f $*.o
+
+# Assembly
+.s:
+       ${LINK.s} -o ${.TARGET} ${.IMPSRC} ${LDLIBS}
+.s.o:
+       ${COMPILE.s} ${.IMPSRC}
+.s.a:
+       ${COMPILE.s} ${.IMPSRC}
+       ${AR} ${ARFLAGS} $@ $*.o
+       rm -f $*.o
+.S:
+       ${LINK.S} -o ${.TARGET} ${.IMPSRC} ${LDLIBS}
+.S.o:
+       ${COMPILE.S} ${.IMPSRC}
+.S.a:
+       ${COMPILE.S} ${.IMPSRC}
+       ${AR} ${ARFLAGS} $@ $*.o
+       rm -f $*.o
+
+# Lex
+.l:
+       ${LEX.l} ${.IMPSRC}
+       ${LINK.c} -o ${.TARGET} lex.yy.c ${LDLIBS} -ll
+       rm -f lex.yy.c
+.l.c:
+       ${LEX.l} ${.IMPSRC}
+       mv lex.yy.c ${.TARGET}
+.l.o:
+       ${LEX.l} ${.IMPSRC}
+       ${COMPILE.c} -o ${.TARGET} lex.yy.c 
+       rm -f lex.yy.c
+
+# Yacc
+.y:
+       ${YACC.y} ${.IMPSRC}
+       ${LINK.c} -o ${.TARGET} y.tab.c ${LDLIBS}
+       rm -f y.tab.c
+.y.c:
+       ${YACC.y} ${.IMPSRC}
+       mv y.tab.c ${.TARGET}
+.y.o:
+       ${YACC.y} ${.IMPSRC}
+       ${COMPILE.c} -o ${.TARGET} y.tab.c
+       rm -f y.tab.c
+
+# Shell
+.sh:
+       rm -f ${.TARGET}
+       cp ${.IMPSRC} ${.TARGET}



Home | Main Index | Thread Index | Old Index