TP11: Rename the static binary target to express that it's not
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Tue, 7 Mar 2017 17:47:05 +0000 (18:47 +0100)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Tue, 7 Mar 2017 17:47:05 +0000 (18:47 +0100)
statically linked binary but linked only against the embedded libraries

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
TP_11/exo1/Makefile
TP_11/exo2/Makefile

index 634334e0682cb605ae3af644cb9ee7461d927cdb..adaddf03082e863ecebc91f9e794d753d489bf24 100644 (file)
@@ -21,7 +21,7 @@ BUILD_TYPE=debug
 # DO NOT CHANGE STUFF BEYOND THIS LINE
 # ====================================
 
-all: $(BINARY_NAME) $(BINARY_NAME).dynamic $(BINARY_NAME).static
+all: $(BINARY_NAME) $(BINARY_NAME).dynamic $(BINARY_NAME).staticlocal
 
 CC=gcc
 LD=gcc
@@ -72,7 +72,7 @@ $(BINARY_NAME): $(OBJS)
        @$(LD) $(CFLAGS) $(LDFLAGS) $^ $(LDLIBS) -o $@
 
 LOCALLDLIBS=-L. -ltpC
-$(BINARY_NAME).static: $(OBJDIR)/$(BINARY_NAME).o $(LIBRARY_NAME).a
+$(BINARY_NAME).staticlocal: $(OBJDIR)/$(BINARY_NAME).o $(LIBRARY_NAME).a
        @echo "[LD ] $@"
        @$(LD) $(CFLAGS) $(LDFLAGS) $^ $(LOCALLDLIBS) $(LDLIBS) -o $@
 
@@ -95,7 +95,7 @@ clean:
        @echo "[CLN]"
        -@rm -r $(BUILDDIR)
        -@rm $(BINARY_NAME)
-       -@rm $(BINARY_NAME).static
+       -@rm $(BINARY_NAME).staticlocal
        -@rm $(BINARY_NAME).dynamic
        -@rm $(LIBRARY_NAME).so
        -@rm $(LIBRARY_NAME).a
index aded269fc30a277df06eb6e2cc8d0dbe89429785..50191de500f748c8923002c3d6175f2f082a35f3 100644 (file)
@@ -21,7 +21,7 @@ BUILD_TYPE=debug
 # DO NOT CHANGE STUFF BEYOND THIS LINE
 # ====================================
 
-all: $(BINARY_NAME) $(BINARY_NAME).dynamic $(BINARY_NAME).static
+all: $(BINARY_NAME) $(BINARY_NAME).dynamic $(BINARY_NAME).staticlocal
 
 CC=gcc
 LD=gcc
@@ -72,7 +72,7 @@ $(BINARY_NAME): $(OBJS)
        @$(LD) $(CFLAGS) $(LDFLAGS) $^ $(LDLIBS) -o $@
 
 LOCALLDLIBS=-L. -ltpC
-$(BINARY_NAME).static: $(OBJDIR)/$(BINARY_NAME).o $(LIBRARY_NAME).a
+$(BINARY_NAME).staticlocal: $(OBJDIR)/$(BINARY_NAME).o $(LIBRARY_NAME).a
        @echo "[LD ] $@"
        @$(LD) $(CFLAGS) $(LDFLAGS) $^ $(LOCALLDLIBS) $(LDLIBS) -o $@
 
@@ -95,7 +95,7 @@ clean:
        @echo "[CLN]"
        -@rm -r $(BUILDDIR)
        -@rm $(BINARY_NAME)
-       -@rm $(BINARY_NAME).static
+       -@rm $(BINARY_NAME).staticlocal
        -@rm $(BINARY_NAME).dynamic
        -@rm $(LIBRARY_NAME).so
        -@rm $(LIBRARY_NAME).a