From: kremlin Date: Tue, 20 May 2014 03:37:30 +0000 (-0500) Subject: (g)makefile, structuring filesystem X-Git-Tag: hostnamed-copyable~64 X-Git-Url: https://uglyman.kremlin.cc/gitweb/gitweb.cgi?a=commitdiff_plain;h=32a2d8e20882543d2feac2641c54ff0ba65f84fa;p=systembsd.git (g)makefile, structuring filesystem --- diff --git a/Makefile b/Makefile index 5ccb2e0..222a403 100644 --- 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 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 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 index a3217c8..0000000 --- a/bin/tmp +++ /dev/null @@ -1,2 +0,0 @@ -TODO: delete me! -