forked from adafruit/Adafruit_ADS1X15
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
41 lines (32 loc) · 868 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
CXX=g++
AR=ar
CXXFLAGS=-W -Wall
LDFLAGS=
SRC=ADS1X15_TLA2024.cpp
OUT=libads1x15_tla2024.a
OBJ=$(SRC:.cpp=.o)
all: examples
lib: $(OUT)
.cpp.o:
$(CXX) $(CXXFLAGS) -c $< -o $@
$(OUT): $(OBJ)
$(AR) rcs $(OUT) $(OBJ)
examples: $(OUT)
@(cd examples/multiDeviceOnSameBus && $(MAKE))
@(cd examples/singleEnded && $(MAKE))
@(cd examples/differential && $(MAKE))
@(cd examples/comparator && $(MAKE))
help:
@echo "Usage: all, examples, lib, clean, mrproper"
clean:
rm -f $(OBJ)
@(cd examples/multiDeviceOnSameBus && $(MAKE) $@)
@(cd examples/singleEnded && $(MAKE) $@)
@(cd examples/differential && $(MAKE) $@)
@(cd examples/comparator && $(MAKE) $@)
mrproper: clean
rm -f $(OUT)
@(cd examples/multiDeviceOnSameBus && $(MAKE) $@)
@(cd examples/singleEnded && $(MAKE) $@)
@(cd examples/differential && $(MAKE) $@)
@(cd examples/comparator && $(MAKE) $@)