aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorcomex <comexk@gmail.com>2009-04-20 09:38:29 -0400
committercomex <comexk@gmail.com>2009-04-20 09:38:29 -0400
commitedf2358bae05bb562cdfd64c532214dc8de56a78 (patch)
tree9e4eaf2d4c05419dc9b801ae74d2731081e53de2 /Makefile
parent9dd4c6086aff0c01459180676966f978665df21f (diff)
Compile 32-bit since everyone sucks and thinks long = int
Diffstat (limited to 'Makefile')
-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)