diff options
author | Anton Khirnov <anton@khirnov.net> | 2020-07-26 16:02:49 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2020-07-26 16:02:49 +0200 |
commit | 6a59a9926996ce350472678c4fb62b2242a117fb (patch) | |
tree | 367bb0bc3f6ec3dd02acf1c18ebcff679cbf2162 /Makefile | |
parent | f5feee8682d6aba8d558ec8afd806764c3b93cdd (diff) |
Makefile: allow overriding cc
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -3,6 +3,8 @@ LDFLAGS = -Wl,--version-script=libbrilldata.v -shared -lm -llapacke TARGET = libbrilldata.so +CC = cc + OBJS = basis.o \ cpu.o \ cpuid.o \ @@ -20,10 +22,10 @@ OBJS = basis.o \ all: $(TARGET) $(TARGET): $(OBJS) - cc ${LDFLAGS} -o $@ $(OBJS) + $(CC) ${LDFLAGS} -o $@ $(OBJS) %.o: %.c - cc $(CFLAGS) -MMD -MF $(@:.o=.d) -MT $@ -c -o $@ $< + $(CC) $(CFLAGS) -MMD -MF $(@:.o=.d) -MT $@ -c -o $@ $< %.o: %.asm nasm -f elf64 -M $< > $(@:.o=.d) |