# 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
@$(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 $@
@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
# 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
@$(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 $@
@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