geiger wip
This commit is contained in:
@@ -10,7 +10,20 @@ PROG_TYPE = arduino
|
||||
# Build the final AVRDUDE arguments
|
||||
PROG_ARGS = -c $(PROG_TYPE) -p $(MCU) -b $(PROG_BAUD) -P $(PROG_DEV)
|
||||
|
||||
INCFLAGS += -Isrc -Ilib/libssd1306/src
|
||||
INCFLAGS += -Isrc -Ilib/libssd1306/src -Ilib/porklib
|
||||
|
||||
LIB_SOURCES =
|
||||
#LIB_SOURCES += lib/porklib/uart.c
|
||||
#LIB_SOURCES += lib/porklib/uart.c
|
||||
LIB_SOURCES += lib/porklib/iopins.c
|
||||
#LIB_SOURCES += lib/porklib/stream.c
|
||||
LIB_SOURCES += lib/porklib/adc.c
|
||||
#LIB_SOURCES += lib/porklib/dht11.c
|
||||
#LIB_SOURCES += lib/porklib/sonar.c
|
||||
#LIB_SOURCES += lib/porklib/onewire.c
|
||||
#LIB_SOURCES += lib/porklib/spi.c
|
||||
#LIB_SOURCES += lib/porklib/sd.c
|
||||
#LIB_SOURCES += lib/porklib/fat16.c
|
||||
|
||||
CFLAGS = -std=gnu99 -mmcu=$(MCU) -DF_CPU=$(F_CPU)UL
|
||||
CFLAGS += -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums
|
||||
@@ -40,7 +53,7 @@ OBJDUMP = avr-objdump
|
||||
AVRSIZE = avr-size
|
||||
AVRDUDE = avrdude
|
||||
|
||||
SOURCES=$(wildcard $(SRC_DIR)/*.c)
|
||||
SOURCES=$(wildcard $(SRC_DIR)/*.c) $(LIB_SOURCES)
|
||||
OBJECTS=$(SOURCES:$(SRC_DIR)/%.c=$(BUILD_DIR)/%.o)
|
||||
DEPENDS=$(BUILD_DIR)/.depends
|
||||
|
||||
@@ -62,7 +75,11 @@ eeprom: $(TARGET).eeprom
|
||||
size: $(TARGET).elf
|
||||
$(AVRSIZE) -C --mcu=$(MCU) $<
|
||||
|
||||
$(TARGET).elf: $(OBJECTS) | $(BUILD_DIR)
|
||||
# Build the display library
|
||||
lib/libssd1306/bld/libssd1306.a:
|
||||
$(MAKE) -C lib/libssd1306/ -f Makefile.avr MCU=atmega328p
|
||||
|
||||
$(TARGET).elf: $(OBJECTS) lib/libssd1306/bld/libssd1306.a | $(BUILD_DIR)
|
||||
$(LD) $(CFLAGS) $(LFLAGS) -o $@ $^ lib/libssd1306/bld/libssd1306.a
|
||||
|
||||
%.hex: %.elf
|
||||
|
||||
Reference in New Issue
Block a user