summaryrefslogtreecommitdiffstats
path: root/Nate's Position Testing/Shooter Testing/Makefile
diff options
context:
space:
mode:
authorClyne Sullivan <tullivan99@gmail.com>2016-02-10 14:28:16 -0500
committerClyne Sullivan <tullivan99@gmail.com>2016-02-10 14:28:16 -0500
commitc3b516ee1f6e0d317e629ba95abf4ac0cd94f534 (patch)
tree63e615656c03137a57617233fa4a02cf19a3e0a2 /Nate's Position Testing/Shooter Testing/Makefile
parent476a0dbf41e14458c52a5cd2fe5b4c050a6c6551 (diff)
revised everything
Diffstat (limited to 'Nate's Position Testing/Shooter Testing/Makefile')
-rw-r--r--Nate's Position Testing/Shooter Testing/Makefile69
1 files changed, 0 insertions, 69 deletions
diff --git a/Nate's Position Testing/Shooter Testing/Makefile b/Nate's Position Testing/Shooter Testing/Makefile
deleted file mode 100644
index 5d6b7fc..0000000
--- a/Nate's Position Testing/Shooter Testing/Makefile
+++ /dev/null
@@ -1,69 +0,0 @@
-# Universal C Makefile for MCU targets
-
-# Path to project root (for top-level, so the project is in ./; first-level, ../; etc.)
-ROOT=.
-# Binary output directory
-BINDIR=$(ROOT)/bin
-# Subdirectories to include in the build
-SUBDIRS=src
-
-# Nothing below here needs to be modified by typical users
-
-# Include common aspects of this project
--include $(ROOT)/common.mk
-
-ASMSRC:=$(wildcard *.$(ASMEXT))
-ASMOBJ:=$(patsubst %.o,$(BINDIR)/%.o,$(ASMSRC:.$(ASMEXT)=.o))
-HEADERS:=$(wildcard *.$(HEXT))
-CSRC=$(wildcard *.$(CEXT))
-COBJ:=$(patsubst %.o,$(BINDIR)/%.o,$(CSRC:.$(CEXT)=.o))
-CPPSRC:=$(wildcard *.$(CPPEXT))
-CPPOBJ:=$(patsubst %.o,$(BINDIR)/%.o,$(CPPSRC:.$(CPPEXT)=.o))
-OUT:=$(BINDIR)/$(OUTNAME)
-
-.PHONY: all clean upload _force_look
-
-# By default, compile program
-all: $(BINDIR) $(OUT)
-
-# Remove all intermediate object files (remove the binary directory)
-clean:
- -rm -f $(OUT)
- -rm -rf $(BINDIR)
-
-# Uploads program to device
-upload: all
- $(UPLOAD)
-
-# Phony force-look target
-_force_look:
- @true
-
-# Looks in subdirectories for things to make
-$(SUBDIRS): %: _force_look
- @$(MAKE) --no-print-directory -C $@
-
-# Ensure binary directory exists
-$(BINDIR):
- -@mkdir -p $(BINDIR)
-
-# Compile program
-$(OUT): $(SUBDIRS) $(ASMOBJ) $(COBJ) $(CPPOBJ)
- @echo LN $(BINDIR)/*.o $(LIBRARIES) to $@
- @$(CC) $(LDFLAGS) $(BINDIR)/*.o $(LIBRARIES) -o $@
- @$(MCUPREFIX)size $(SIZEFLAGS) $(OUT)
- $(MCUPREPARE)
-
-# Assembly source file management
-$(ASMOBJ): $(BINDIR)/%.o: %.$(ASMEXT) $(HEADERS)
- @echo AS $<
- @$(AS) $(AFLAGS) -o $@ $<
-
-# Object management
-$(COBJ): $(BINDIR)/%.o: %.$(CEXT) $(HEADERS)
- @echo CC $(INCLUDE) $<
- @$(CC) $(INCLUDE) $(CFLAGS) -o $@ $<
-
-$(CPPOBJ): $(BINDIR)/%.o: %.$(CPPEXT) $(HEADERS)
- @echo CPC $(INCLUDE) $<
- @$(CPPCC) $(INCLUDE) $(CPPFLAGS) -o $@ $<