Created
October 22, 2013 16:21
-
-
Save JasonGross/7103651 to your computer and use it in GitHub Desktop.
log of attempt at makefile verbosity
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jgross@cagnode17:/tmp/fooo/bar$ ls | |
foo.c foo.h Makefile | |
jgross@cagnode17:/tmp/fooo/bar$ cat foo.c | |
jgross@cagnode17:/tmp/fooo/bar$ cat foo.h | |
jgross@cagnode17:/tmp/fooo/bar$ cat Makefile | |
V = 0 | |
CC_0 := @echo -t "Compiling $<..."; $(CC) | |
CC_1 := $(CC) | |
CC = $(CC_$(V)) | |
all: foo.o | |
%.o: %.c $(h1) $(h3) %.h | |
$(CC) $(CFLAGS) -c $< -o $(libDir)$@$(MATHOPTS) | |
jgross@cagnode17:/tmp/fooo/bar$ rm *.o && make | |
-t Compiling ... | |
jgross@cagnode17:/tmp/fooo/bar$ rm *.o && make V=1 | |
cc -c foo.c -o foo.o | |
jgross@cagnode17:/tmp/fooo/bar$ make -v | |
GNU Make 3.81 | |
Copyright (C) 2006 Free Software Foundation, Inc. | |
This is free software; see the source for copying conditions. | |
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A | |
PARTICULAR PURPOSE. | |
This program built for x86_64-pc-linux-gnu | |
jgross@cagnode17:/tmp/fooo/bar$ uname -a | |
Linux cagnode17 2.6.32-5-xen-amd64 #1 SMP Sun Sep 23 13:49:30 UTC 2012 x86_64 GNU/Linux |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment