wiring-sucks

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit 25faafc151200a02ee440d0aecf1fbc4c1f546b5
parent 4e73095989086cbccb1bf9bbc6d086d2b27de217
Author: Elecon-rou <quest90spin@gmail.com>
Date:   Wed,  1 Jul 2020 01:37:00 +0400

add library makefiles

Diffstat:
Alib/Ethernet/Makefile | 24++++++++++++++++++++++++
Alib/Firmata/Makefile | 22++++++++++++++++++++++
Alib/GSM/Makefile | 31+++++++++++++++++++++++++++++++
Alib/LiquidCrystal/Makefile | 22++++++++++++++++++++++
Alib/SD/Makefile | 22++++++++++++++++++++++
Alib/SPI/Makefile | 22++++++++++++++++++++++
Alib/Servo/Makefile | 22++++++++++++++++++++++
Alib/Stepper/Makefile | 23+++++++++++++++++++++++
Alib/Wire/Makefile | 22++++++++++++++++++++++
9 files changed, 210 insertions(+), 0 deletions(-)

diff --git a/lib/Ethernet/Makefile b/lib/Ethernet/Makefile @@ -0,0 +1,24 @@ +include ../../config.mk +include ../../board.mk + +CFLAGS+=-I../../include/Core -I../../include/Ethernet -I../../include/Ethernet/utility -I../../include/SPI +CXXFLAGS=$(CFLAGS) + +OBJS=Ethernet.o EthernetClient.o EthernetServer.o EthernetUdp.o \ +Dhcp.o Dns.o utility/socket.o utility/w5100.o + +%.o : %.S + $(CC) $(CFLAGS) -x assembler-with-cpp -c $< +%.o : %.cpp + $(CXX) $(CXXFLAGS) -c $< -o $@ + echo $@ +%.o : %.c + $(CC) $(CFLAGS) -c $< + +Ethernet.a: $(OBJS) + $(AR) ../../$@ $^ + +all: Ethernet.a + +clean: + rm -f *.o diff --git a/lib/Firmata/Makefile b/lib/Firmata/Makefile @@ -0,0 +1,22 @@ +include ../../config.mk +include ../../board.mk + +CFLAGS+=-I../../include/Core -I../../include/Firmata +CXXFLAGS=$(CFLAGS) + +OBJS=Firmata.o + +%.o : %.S + $(CC) $(CFLAGS) -x assembler-with-cpp -c $< +%.o : %.cpp + $(CXX) $(CXXFLAGS) -c $< +%.o : %.c + $(CC) $(CFLAGS) -c $< + +Firmata.a: $(OBJS) + $(AR) ../../$@ $^ + +all: Firmata.a + +clean: + rm -f *.o diff --git a/lib/GSM/Makefile b/lib/GSM/Makefile @@ -0,0 +1,31 @@ +include ../../config.mk +include ../../board.mk + +CFLAGS+=-I../../include/Core -I../../include/GSM +CXXFLAGS=$(CFLAGS) + +OBJS=GSM3CircularBuffer.o GSM3MobileAccessProvider.o GSM3MobileCellManagement.o \ +GSM3MobileClientProvider.o GSM3MobileClientService.cpp GSM3MobileDataNetworkProvider.o \ +GSM3MobileNetworkRegistry.o GSM3MobileServerProvider.o GSM3MobileServerService.o \ +GSM3MobileVoiceProvider.o GSM3ShieldV1.o GSM3ShieldV1AccessProvider.o \ +GSM3ShieldV1BandManagement.o GSM3ShieldV1BaseProvider.o GSM3ShieldV1CellManagement.o \ +GSM3ShieldV1ClientProvider.o GSM3ShieldV1DataNetworkProvider.o GSM3ShieldV1DirectModemProvider.o \ +GSM3ShieldV1ModemCore.o GSM3ShieldV1ModemVerification.o GSM3ShieldV1MultiClientProvider.o \ +GSM3ShieldV1MultiServerProvider.o GSM3ShieldV1PinManagement.o GSM3ShieldV1ScanNetworks.o \ +GSM3ShieldV1ServerProvider.o GSM3ShieldV1SMSProvider.o GSM3ShieldV1VoiceProvider.o \ +GSM3SMSService.o GSM3SoftSerial.o GSM3VoiceCallService.o + +%.o : %.S + $(CC) $(CFLAGS) -x assembler-with-cpp -c $< +%.o : %.cpp + $(CXX) $(CXXFLAGS) -c $< +%.o : %.c + $(CC) $(CFLAGS) -c $< + +GSM.a: $(OBJS) + $(AR) ../../$@ $^ + +all: GSM.a + +clean: + rm -f *.o diff --git a/lib/LiquidCrystal/Makefile b/lib/LiquidCrystal/Makefile @@ -0,0 +1,22 @@ +include ../../config.mk +include ../../board.mk + +CFLAGS+=-I../../include/Core -I../../include/LiquidCrystal +CXXFLAGS=$(CFLAGS) + +OBJS=LiquidCrystal.o + +%.o : %.S + $(CC) $(CFLAGS) -x assembler-with-cpp -c $< +%.o : %.cpp + $(CXX) $(CXXFLAGS) -c $< +%.o : %.c + $(CC) $(CFLAGS) -c $< + +LiquidCrystal.a: $(OBJS) + $(AR) ../../$@ $^ + +all: LiquidCrystal.a + +clean: + rm -f *.o diff --git a/lib/SD/Makefile b/lib/SD/Makefile @@ -0,0 +1,22 @@ +include ../../config.mk +include ../../board.mk + +CFLAGS+=-I../../include/Core -I../../include/SD +CXXFLAGS=$(CFLAGS) + +OBJS=File.o SD.o + +%.o : %.S + $(CC) $(CFLAGS) -x assembler-with-cpp -c $< +%.o : %.cpp + $(CXX) $(CXXFLAGS) -c $< +%.o : %.c + $(CC) $(CFLAGS) -c $< + +SD.a: $(OBJS) + $(AR) ../../$@ $^ + +all: SD.a + +clean: + rm -f *.o diff --git a/lib/SPI/Makefile b/lib/SPI/Makefile @@ -0,0 +1,22 @@ +include ../../config.mk +include ../../board.mk + +CFLAGS+=-I../../include/Core -I../../include/SPI +CXXFLAGS=$(CFLAGS) + +OBJS=SPI.o + +%.o : %.S + $(CC) $(CFLAGS) -x assembler-with-cpp -c $< +%.o : %.cpp + $(CXX) $(CXXFLAGS) -c $< +%.o : %.c + $(CC) $(CFLAGS) -c $< + +SPI.a: $(OBJS) + $(AR) ../../$@ $^ + +all: SPI.a + +clean: + rm -f *.o diff --git a/lib/Servo/Makefile b/lib/Servo/Makefile @@ -0,0 +1,22 @@ +include ../../config.mk +include ../../board.mk + +CFLAGS+=-I../../include/Servo +CXXFLAGS=$(CFLAGS) + +OBJS=Servo.o + +%.o : %.S + $(CC) $(CFLAGS) -x assembler-with-cpp -c $< +%.o : %.cpp + $(CXX) $(CXXFLAGS) -c $< +%.o : %.c + $(CC) $(CFLAGS) -c $< + +Servo.a: $(OBJS) + $(AR) ../../$@ $^ + +all: Servo.a + +clean: + rm -f *.o diff --git a/lib/Stepper/Makefile b/lib/Stepper/Makefile @@ -0,0 +1,22 @@ +include ../../config.mk +include ../../board.mk + +CFLAGS+=-I../../include/Core -I../../include/Stepper +CXXFLAGS=$(CFLAGS) + +OBJS=Stepper.o + +%.o : %.S + $(CC) $(CFLAGS) -x assembler-with-cpp -c $< +%.o : %.cpp + $(CXX) $(CXXFLAGS) -c $< +%.o : %.c + $(CC) $(CFLAGS) -c $< + +Stepper.a: $(OBJS) + $(AR) ../../$@ $^ + +all: Stepper.a + +clean: + rm -f *.o+ \ No newline at end of file diff --git a/lib/Wire/Makefile b/lib/Wire/Makefile @@ -0,0 +1,22 @@ +include ../../config.mk +include ../../board.mk + +CFLAGS+=-I../../include/Core -I../../include/Wire -I../../include/Wire/utility +CXXFLAGS=$(CFLAGS) + +OBJS=Wire.o utility/twi.o + +%.o : %.S + $(CC) $(CFLAGS) -x assembler-with-cpp -c $< +%.o : %.cpp + $(CXX) $(CXXFLAGS) -c $< -o $@ +%.o : %.c + $(CC) $(CFLAGS) -c $< -o $@ + +Wire.a: $(OBJS) + $(AR) ../../$@ $^ + +all: Wire.a + +clean: + rm -f *.o