diff options
| author | Sam Anthony <sam@samanthony.xyz> | 2025-10-23 16:01:22 -0400 |
|---|---|---|
| committer | Sam Anthony <sam@samanthony.xyz> | 2025-10-23 16:01:22 -0400 |
| commit | 04fbfdb4fd6bf4118b88867d852e3b29d139c800 (patch) | |
| tree | 504a392a7e68b0d3aeedfddc8518ab4ae4bb33fd /fw/Makefile | |
| parent | 24bce89e4663baaa28332887d5b531fa03ebb252 (diff) | |
| download | can-gauge-interface-04fbfdb4fd6bf4118b88867d852e3b29d139c800.zip | |
fw: remove usb
Diffstat (limited to 'fw/Makefile')
| -rw-r--r-- | fw/Makefile | 20 |
1 files changed, 5 insertions, 15 deletions
diff --git a/fw/Makefile b/fw/Makefile index f7ebebc..12bb693 100644 --- a/fw/Makefile +++ b/fw/Makefile @@ -1,5 +1,5 @@ CC = xc8-cc -INCLUDES = -I ./ -I mla_usb/inc +INCLUDES = -I ./ CFLAGS = -mcpu=pic16f1459 -std=c99 $(INCLUDES) -Wall LDFLAGS = @@ -7,42 +7,32 @@ SYSTEST_DIR = tests/system HEX = can_gauge.hex -SRC = $(shell find . -name "*.c" ! -name "main.c" -maxdepth 1) +SRC = $(shell find . -maxdepth 1 -name "*.c" ! -name "main.c") OBJ = $(notdir $(SRC:.c=.p1)) HDR = $(wildcard *.h) -USB_SRC = mla_usb/src/usb_device.c mla_usb/src/usb_device_cdc.c -USB_OBJ = $(notdir $(USB_SRC:.c=.p1)) - SYSTEST_SRC = $(wildcard $(SYSTEST_DIR)/*.c) SYSTEST_OBJ = $(notdir $(SYSTEST_SRC:.c=.p1)) SYSTEST_HEX = $(SYSTEST_OBJ:.p1=.hex) -$(HEX): $(OBJ) $(USB_OBJ) main.p1 +$(HEX): $(OBJ) main.p1 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ %.p1: %.c $(CC) $(CFLAGS) -c $< -$(USB_OBJ): %.p1: mla_usb/src/%.c - $(CC) $(CFLAGS) -c $< - -$(SYSTEST_HEX): %.hex: %.p1 $(OBJ) $(USB_OBJ) +$(SYSTEST_HEX): %.hex: %.p1 $(OBJ) $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(SYSTEST_OBJ): %.p1: $(SYSTEST_DIR)/%.c $(CC) $(CFLAGS) -c $< clean: - rm -f $(OBJ) $(HEX) *.d *.p1 *.lst *.rlf *.o *.s *.sdb *.sym *.hxl *.elf *.cmf + rm -f *.hex *.d *.p1 *.lst *.rlf *.o *.s *.sdb *.sym *.hxl *.elf *.cmf systest: $(SYSTEST_HEX) -mla_usb: - git submodule init mla_usb - git submodule update mla_usb - $(OBJ): $(HDR) .PHONY: clean systest |