better and smaller makefile

This commit is contained in:
Alessandro Mauri 2020-09-19 16:00:05 +02:00
parent cfa250ec2a
commit 9075ceada1

View File

@ -1,12 +1,10 @@
CC = gcc
CFLAGS = -Wall -pedantic --std=c99 -O2
bmon: bmon.o
bmon: bmon.c
dbg:
gcc $(CFLAGS) -g bmon.c -o bmon-dbg
bmon.o: bmon.c
gcc -O0 -g bmon.c -o bmon-dbg
clean:
rm *.o bmon bmon-dbg 2> /dev/null
rm -f bmon bmon-dbg