Skip to content

Commit 243aef4

Browse files
committed
Don't hardcode GCC in Makefile.
1 parent b4e9f80 commit 243aef4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ clean:
66
# CFLAGS=-Wall
77

88
libbattery.o: libbattery.c battery.h
9-
gcc $(CFLAGS) libbattery.c -o libbattery.o
9+
$(CC) $(CFLAGS) libbattery.c -o libbattery.o
1010

1111
battery: battery.c libbattery.c battery.h
12-
gcc $(CFLAGS) battery.c libbattery.c -lm -o battery
12+
$(CC) $(CFLAGS) battery.c libbattery.c -lm -o battery

0 commit comments

Comments
 (0)