--- Makefile.orig	2005-04-22 00:41:37.000000000 +1000
+++ Makefile	2012-02-17 17:33:23.000000000 +1100
@@ -1,9 +1,5 @@
 all:
-	gcc -march=i686 -c fireworkx_mmx.S
-	gcc -O3 -march=`uname -m` -ffast-math -fomit-frame-pointer \
-            -o fireworkx fireworkx_mmx.o -lX11 -L /usr/X11R6/lib fireworkx.c
-	gcc -O3 -march=`uname -m` -ffast-math -fomit-frame-pointer \
-            -o fireworkz -lvga fireworkz.c
+	$(CC) $(CFLAGS) -O3 -ffast-math -fomit-frame-pointer -o fireworkx fireworkx.c $(LDFLAGS) -lX11
 	
 install: all
 
