]> git.ozlabs.org Git - ppp.git/blobdiff - svr4/Makefile.sol2-64
add handle_events() function
[ppp.git] / svr4 / Makefile.sol2-64
index 64cc9b75213edc46850ea122e6edaed246422cc7..bd598e1df454b9359b19d36ba7a258c0a245d154 100644 (file)
@@ -1,19 +1,23 @@
 #
 # Makefile for 64-bit STREAMS modules for Solaris 2.
 #
-# $Id: Makefile.sol2-64,v 1.1 1999/09/13 20:57:54 masputra Exp $
+# $Id: Makefile.sol2-64,v 1.3 1999/09/21 20:37:20 masputra Exp $
 #
 
-include Makedefs
+include Makedefs.sol2
 
-COPTS += -xarch=v9
-LP64DIR = sparcv9
-STD_MAKE = Makefile.sol2
+# Sun's cc flag for LP64 compilation / linkage
+COPTS          += -xchip=ultra -xarch=v9 -Wc,-xcode=abs32 -Wc,-Qiselect-regsym=0 -xO3 -xspace -W0,-Lt
 
-CFLAGS= -D_KERNEL -DSVR4 -DSOL2 -I../include -DPRIOQ -DDEBUG $(COPTS)
+# subdirectory where 64-bit objects / binaries will be placed
+LP64DIR                = sparcv9
 
-COMP_OBJS =    $(LP64DIR)/ppp_comp.o $(LP64DIR)/bsd-comp.o $(LP64DIR)/deflate.o        \
-               $(LP64DIR)/zlib.o $(LP64DIR)/vjcompress.o $(LP64DIR)/ppp_comp_mod.o
+# Name of legacy Makefile (for 32-bit binaries)
+STD_MAKE       = Makefile.sol2
+
+COMP_OBJS      = $(LP64DIR)/ppp_comp.o $(LP64DIR)/bsd-comp.o \
+               $(LP64DIR)/deflate.o $(LP64DIR)/zlib.o $(LP64DIR)/vjcompress.o \
+               $(LP64DIR)/ppp_comp_mod.o
 
 all:   std_objs $(LP64DIR) ppp ppp_ahdl ppp_comp
 
@@ -66,6 +70,16 @@ install:
        /usr/sbin/rem_drv ppp 2>/dev/null || true
        /usr/sbin/add_drv ppp
 
+SRCS   = ../modules/ppp.c ppp_mod.c ../modules/ppp_ahdlc.c ppp_ahdlc_mod.c \
+       ../modules/ppp_comp.c ../modules/bsd-comp.c ../modules/deflate.c \
+       ../common/zlib.c ../modules/vjcompress.c ppp_comp_mod.c
+
+lint:
+       $(LINT64) $(SRCS)
+
+lint-32:
+       $(LINT32) $(SRCS)
+
 clean:
        $(MAKE) -f $(STD_MAKE) clean
        rm -f $(LP64DIR)/ppp $(LP64DIR)/ppp_comp $(LP64DIR)/ppp_ahdl $(LP64DIR)/*.o $(LP64DIR)/*~ $(LP64DIR)/core