We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a78ccca commit 59389fcCopy full SHA for 59389fc
Makefile
@@ -1,7 +1,8 @@
1
2
-SUBDIRS = ucos app
+SUBDIRS = arduino ucos app
3
4
TARGET = ucos_sample
5
+
6
OBJS = $(BUILDDIR)/app.o \
7
$(BUILDDIR)/ucos.o
8
@@ -11,16 +12,18 @@ export TOPDIR
11
12
BUILDDIR = $(TOPDIR)/build
13
export BUILDDIR
14
-
15
all: subdirs $(TARGET)
16
17
+subdirs: $(BUILDDIR)
18
subdirs:
19
@for dir in $(SUBDIRS) ; do $(MAKE) -C $$dir || exit 1; done
20
21
$(TARGET): $(OBJS)
22
@$(CC) $(CFLAGS) $^ -o $@ $(LDFLAGS)
23
@echo " [LD] $@ $(LDFLAGS) "
24
25
+$(BUILDDIR):
26
+ mkdir -p $(@)
27
28
clean:
29
find . -name "*.o" -o -name "*.exe" | xargs rm -rf;
0 commit comments