tools/Makefile
changeset 16 33aaaec59991
parent 9 97fb557d9979
child 774 d0cbca26a17c
--- a/tools/Makefile	Thu May 20 13:21:58 2010 -0500
+++ b/tools/Makefile	Thu Jun 10 15:06:28 2010 -0500
@@ -23,7 +23,20 @@
 
 include ../make-rules/shared-macros.mk
 
-download setup prep build install publish validate:	time.o
+download setup prep build install publish validate:	time-$(MACH32).so \
+							time-$(MACH64).so
+
+time-$(MACH64).o:			BITS=64
+time-$(MACH32).o time-$(MACH64).o:	CFLAGS += -Kpic
+
+time-$(MACH32).o time-$(MACH64).o:	time.c
+	$(CC) $(CFLAGS) -c -o $@ $<
 
-clean clobber:
-	$(RM) time.o
+time-%.so:	time-%.o
+	$(LD) -G -o $@ $<
+
+clean:
+	$(RM) time-*.o
+
+clobber:	clean
+	$(RM) time-*.so