forked from peterbarker/APWeb
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
25 lines (17 loc) · 664 Bytes
/
Makefile
File metadata and controls
25 lines (17 loc) · 664 Bytes
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
CC=gcc
CFLAGS=-Wall -g -Werror -std=gnu99
SRC = $(wildcard *.c) $(wildcard lib/*.c) $(wildcard linux/*.c) $(wildcard posix/*.c)
OBJ = $(SRC:%.c=%.o)
LIBS = -ltalloc -lpthread
all: files/embedded.c mavlink web_server
.PHONY: mavlink
mavlink: generated/mavlink/ardupilotmega/mavlink.h
generated/mavlink/ardupilotmega/mavlink.h:
modules/mavlink/pymavlink/tools/mavgen.py --lang C modules/mavlink/message_definitions/v1.0/ardupilotmega.xml -o generated/mavlink --wire-protocol=2.0
web_server: $(OBJ) files/embedded.c
$(CC) -o web_server $(OBJ) $(LIBS)
files/embedded.c:
cd files && make
clean:
rm -f *.o */*.o web_server files/embedded.c
rm -rf generated