aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index ca5c847..9a7c848 100644
--- a/Makefile
+++ b/Makefile
@@ -1,9 +1,12 @@
GENERICOBJECTS = main.o general.o memfile.o xml.o endian.o
MAINOBJECTS = brlyt.o brlan.o
OBJECTS = $(GENERICOBJECTS) $(MAINOBJECTS)
-LIBS = -lmxml
+LIBS = -L. -lmxml
OUTPUT = benzin
-main: $(OBJECTS)
- gcc -o $(OUTPUT) $(LIBS) $(OBJECTS)
+all: $(OUTPUT)
+%.o: %.c
+ gcc -m32 -c -o $@ $<
+$(OUTPUT): $(OBJECTS)
+ gcc -m32 -o $(OUTPUT) $(LIBS) $(OBJECTS)
clean:
rm -f $(OUTPUT) $(OBJECTS)