aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2019-05-04 00:57:44 +0200
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2019-05-04 00:57:44 +0200
commitf15b53eea4b7054826f79836e207751e86ba1cec (patch)
tree1373166457009a8ca25f3edf66cbdb99987f0585 /Makefile
parent099c4db0a3a8e77deb7af7436faec802fe9401de (diff)
downloadAsciiMap-f15b53eea4b7054826f79836e207751e86ba1cec.tar.gz
Reorganised folder structure
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 4 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index bbecb30..5ef4629 100644
--- a/Makefile
+++ b/Makefile
@@ -1,11 +1,12 @@
CC = /usr/bin/gcc
CFLAGS = -Wall
LDFLAGS = -lm
+SOURCEDIR = src
OUTPUT = bitmap
BUILDDIR = build
FILE = 022.bmp
-SRCS = $(wildcard *.c)
+SRCS = $(wildcard $(SOURCEDIR)/*.c)
OBJ = $(SRCS:.c=.o)
build: $(OBJ)
@@ -19,11 +20,8 @@ gdb: debug
gdb $(BUILDDIR)/$(OUTPUT)
%.o: %.c
- @echo
- @echo Building $<
- @echo ==============
- @echo
- $(CC) $(CFLAGS) -c $<
+ @echo [ CC ] $<
+ @$(CC) $(CFLAGS) -c $< -o $@
all: clean build