]> mj.ucw.cz Git - eval.git/blobdiff - Makefile
Split installation process.
[eval.git] / Makefile
index a66efdee7dc5722971cd9d06526e82422d49ce6f..9d2b0e2dabeacb7a20e907934ce0adbe4ae17733 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,12 +1,11 @@
-# Makefile for the ywho toolkit
-
-DEBUG=-ggdb
+#DEBUG=-ggdb
 CFLAGS=-O2 -Wall -W -Wno-parentheses -Wstrict-prototypes -Wmissing-prototypes -Winline $(DEBUG)
 
 CFLAGS=-O2 -Wall -W -Wno-parentheses -Wstrict-prototypes -Wmissing-prototypes -Winline $(DEBUG)
 
-all: box
+all: bin/box
 
 
-box.o: box.c
+bin/box: src/box.o
+       $(CC) $(LDFLAGS) -o $@ $<
 
 clean:
        rm -f `find . -name "*~" -or -name "*.[oa]" -or -name "\#*\#" -or -name TAGS -or -name core`
 
 clean:
        rm -f `find . -name "*~" -or -name "*.[oa]" -or -name "\#*\#" -or -name TAGS -or -name core`
-       rm -f box
+       rm -f bin/box