(g)makefile, structuring filesystem
authorkremlin <ian@kremlin.cc>
Tue, 20 May 2014 03:37:30 +0000 (22:37 -0500)
committerkremlin <ian@kremlin.cc>
Tue, 20 May 2014 03:37:30 +0000 (22:37 -0500)
Makefile
a.out [new file with mode: 0755]
bin/devel/outfile-tmp [new file with mode: 0644]
bin/tmp [deleted file]

index 5ccb2e0536f6dc7c0b3a0599fac74492919641cb..222a403e6a46e6f8f5ce668c644d719936ff87dc 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,18 @@
-# use gmake!
+CC=gcc
+BINPATH=bin/
+CFLAGS=-c -Wall -std=gnu99
+DEVFLAGS= -g -o $(BINPATH)devel/outfile-tmp                   \
+-Wextra -Werror -pedantic                                     \
+-O0 $(SOURCES)
 
-.PHONY: all
+SOURCES=main.c
 
+.PHONY: all build clean install
+
+all: 
+       $(CC) $(CFLAGS) $(DEVFLAGS)
+
+clean:
+build:
+install:
 
diff --git a/a.out b/a.out
new file mode 100755 (executable)
index 0000000..ef9306e
Binary files /dev/null and b/a.out differ
diff --git a/bin/devel/outfile-tmp b/bin/devel/outfile-tmp
new file mode 100644 (file)
index 0000000..21f0d39
Binary files /dev/null and b/bin/devel/outfile-tmp differ
diff --git a/bin/tmp b/bin/tmp
deleted file mode 100644 (file)
index a3217c8..0000000
--- a/bin/tmp
+++ /dev/null
@@ -1,2 +0,0 @@
-TODO: delete me!
-