diff options
author | Sam James <sam@gentoo.org> | 2022-04-03 03:26:20 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2022-04-06 01:20:39 +0100 |
commit | 01603e2b71eb93770137daf6ed93b54741ce14dc (patch) | |
tree | b6be56cb7fc5de4ad7213ba68df91d250cd73cd9 /usr | |
parent | 9fbd6009cd917f1152a367fa7e5ae3993133c1e4 (diff) | |
download | open-iscsi-01603e2b71eb93770137daf6ed93b54741ce14dc.tar.gz |
Makefiles: respect $(CC) fully (don't hardcode GCC); use $(RM)
- Don't hardcode GCC, instead respect the detected CC (or from the environment)
- Use $(RM) as the location may vary and we've already done the work to detect it
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'usr')
-rw-r--r-- | usr/Makefile | 2 | ||||
-rw-r--r-- | usr/fwparam_ibft/Makefile | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/usr/Makefile b/usr/Makefile index 41afa63..3d52d49 100644 --- a/usr/Makefile +++ b/usr/Makefile @@ -120,7 +120,7 @@ clean: $(MAKE) $(MFLAGS) -C $(FW_BOOT_DIR) clean depend: - gcc $(CFLAGS) -M `ls *.c` > .depend + $(CC) $(CFLAGS) -M `ls *.c` > .depend $(MAKE) $(MFLAGS) -C $(FW_BOOT_DIR) depend -include .depend diff --git a/usr/fwparam_ibft/Makefile b/usr/fwparam_ibft/Makefile index 6739f41..768b573 100644 --- a/usr/fwparam_ibft/Makefile +++ b/usr/fwparam_ibft/Makefile @@ -42,11 +42,11 @@ LDFLAGS += -L$(TOPDIR)/libopeniscsiusr -liscsiusr all: $(OBJS) clean: - rm -f $(CLEANFILES) .depend + $(RM) $(CLEANFILES) .depend $(OBJS): prom_parse.tab.h prom_parse.h depend: - gcc $(CFLAGS) -M `ls *.c` > .depend + $(CC) $(CFLAGS) -M `ls *.c` > .depend -include .depend |