diff options
author | jonas <himself@jonasgunz.de> | 2019-04-28 11:00:27 +0200 |
---|---|---|
committer | jonas <himself@jonasgunz.de> | 2019-04-28 11:00:27 +0200 |
commit | 15dc2c219595a92ca121578b13047e23156ea3fa (patch) | |
tree | 7523a22aa094aaf79a72100c8f8a0d4a04f0bfe3 /Makefile | |
parent | dd029dad99fd17770980ff87b909733e7594b829 (diff) | |
download | AsciiMap-15dc2c219595a92ca121578b13047e23156ea3fa.tar.gz |
Added DEBUG messages and debug make target
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -1,5 +1,5 @@ CC = /usr/bin/gcc -CFLAGS = -Wall -g +CFLAGS = -Wall LDFLAGS = -lm OUTPUT = bitmap BUILDDIR = build @@ -12,7 +12,10 @@ build: $(OBJ) mkdir -p $(BUILDDIR) $(CC) $(CFLAGS) -o $(BUILDDIR)/$(OUTPUT) $(OBJ) $(LDFLAGS) -debug: build +debug: CFLAGS+= -g -D _DEBUG +debug: build; + +gdb: debug gdb $(BUILDDIR)/$(OUTPUT) %.o: %.c |