=========  Makefile ==================
ECHO=           echo
INS=            install
TRUE=           true
SYMLINK=        /usr/bin/ln -s
LN=             /usr/bin/ln
CHMOD=          /usr/bin/chmod
CHOWN=          $(TRUE)
CHGRP=          $(TRUE)
MV=             /usr/bin/mv -f
RM=             /usr/bin/rm -f
CUT=            /usr/bin/cut
NM=             /usr/ccs/bin/nm
DIFF=           /usr/bin/diff
GREP=           /usr/bin/grep
EGREP=          /usr/bin/egrep
SED=            /usr/bin/sed
NAWK=           /usr/bin/nawk
CP=             /usr/bin/cp -f
MCS=            /usr/ccs/bin/mcs
CAT=            /usr/bin/cat
M4=             /usr/ccs/bin/m4
STRIP=          /usr/ccs/bin/strip
LEX=            /usr/ccs/bin/lex
YACC=           /usr/ccs/bin/yacc
CPP=            /usr/lib/cpp

## Build command
CC=     cc
LD=     ld

#
# compiler '-xarch' flag. This is here to centralize it and make it
# overridable for testing.
sparc_XARCH=            -xarch=v8
sparcv9_XARCH=          -xarch=v9
i386_XARCH=
amd64_XARCH=            -m64 -Ui386 -U__i386 ##-xarch=amd64

#
sparc_COPTFLAG=         -xO3
sparcv9_COPTFLAG=       -xO3
i386_COPTFLAG=          -O
amd64_COPTFLAG=         -xO3

COPTFLAG= $($(MACH)_COPTFLAG)
COPTFLAG64= $($(MACH64)_COPTFLAG)

###
amd64_CFLAGS=   -xmodel=kernel $(amd64_XARCH)
i386_64_CFLAGS= -xmodel=kernel $(amd64_XARCH)
amd_64_CFLAGS=  -xmodel=kernel $(amd64_XARCH)
sparcv9_CFLAGS= -xarch=v9

CFLAGS += -D_KERNEL  $($(MACH)_$(ISA)_CFLAGS)  -DDEBUG #-D_MULTI_DATAMODEL=1
LDFLAGS += -r -dy -Nmisc/neti -Nmisc/hook

#### All target create the ultimate file ####
all: msahook

## Target: msanet hook
msahook:msa_hook.o
        $(LD) $(LDFLAGS) -o msahook msa_hook.o
msa_hook.o:msa_hook.c
        $(CC) $(CFLAGS) -c msa_hook.c -I../include

#### Clean target deletes all generated files ####
clean:
        $(RM) msahook *.o *~ *.*~
# Enable dependency checking
#.KEEP_STATE:
#.KEEP_STATE_FILE:.make.state.Sun-x86-Solaris
-- 
This message posted from opensolaris.org
_______________________________________________
networking-discuss mailing list
[email protected]

Reply via email to