--- Makefile	2005-06-22 22:12:18.000000000 +0200
+++ Makefile	2005-11-30 22:00:39.000000000 +0100
@@ -1,11 +1,11 @@
 CXX		= g++
-LD		= g++
+LD		= $(CXX)
 CXXFILES	= parser.cc lexer.cc expr.cc canvas.cc aamath.cc
 OBJS		= $(CXXFILES:.cc=.o) 
 TARGET		= aamath
-CFLAGS		= -Wall -O2 -g -DUSE_READLINE
+CFLAGS		+= -Wall -O2 -g -DUSE_READLINE
 LFLAGS		= -g
-LIBS		= -lreadline -ltermcap
+LIBS		+= -lreadline -ltermcap
 
 $(TARGET): $(OBJS)
 	$(LD) $(LFLAGS) $(OBJS) -o $@ $(LIBS)
@@ -21,3 +21,6 @@
 
 clean:
 	rm -f *.o lexer.cc parser.h parser.cc $(TARGET)
+
+all: $(TARGET)
+
