Print this page
saveargs: let disasm do the lifting
3544 save-args matcher could be considerably more robust
3545 save-args matcher should accept saves maybe out-of-order
Reviewed by: Joshua M. Clulow <josh@sysmgr.org>

@@ -1,5 +1,6 @@
+
 #
 # This file and its contents are supplied under the terms of the
 # Common Development and Distribution License ("CDDL"), version 1.0.
 # You may only use this file in accordance with the terms of version
 # 1.0 of the CDDL.

@@ -19,19 +20,23 @@
 .KEEP_STATE:
 
 OBJECTS = testmatch.o saveargs.o data.o
 PROG = testmatch
 
+LDLIBS64 += -ldisasm
+
 CPPFLAGS += -I$(SRC)/common/saveargs
 ASFLAGS += -P
 AS_CPPFLAGS += -D_ASM
+CERRWARN += -_gcc=-Wno-parentheses
+CERRWARN += -_gcc=-Wno-uninitialized
 
 %.o: $(SRC)/common/saveargs/%.c
         $(COMPILE.c) -o $@ $<
 
 $(PROG): $(OBJECTS)
-        $(LINK.c) -o $@ $(OBJECTS) -lc
+        $(LINK.c) -o $@ $(OBJECTS) $(LDLIBS64)
 
 clean:
         $(RM) $(OBJECTS) $(PROG)
 
 clobber: clean