Print this page
saveargs: let disasm do the lifting

@@ -20,17 +20,21 @@
 #
 #
 # Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
-# ident "%Z%%M% %I%     %E% SMI"
-#
 
 # This is a 64-bit build, and as such needs 64-bit ELF support
 CMNOBJS64 =     Psymtab_machelf64.o
+SAVEOBJS =      saveargs.o
 
 include ../Makefile.com
 include ../../Makefile.lib.64
 
-CPPFLAGS += -D_SYSCALL32
+CPPFLAGS += -D_SYSCALL32 -I$(SRC)/common/saveargs
+LDLIBS += -ldisasm
 
 install: all $(ROOTLIBS64) $(ROOTLINKS64)
+
+objs/%.o pics/%.o: $(SRC)/common/saveargs/%.c
+        $(COMPILE.c) -o $@ $<
+        $(POST_PROCESS_O)