You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
378 B
28 lines
378 B
#!/usr/bin/make |
|
# |
|
# Requires GNU Make |
|
# |
|
|
|
OS := $(shell uname) |
|
|
|
ifeq ($(OS),Darwin) |
|
CC := cc |
|
CFLAGS := -std=c99 |
|
LDFLAGS := |
|
endif |
|
|
|
ifeq ($(OS),Linux) |
|
CC := cc |
|
CFLAGS := -std=c99 -D_XOPEN_SOURCE=600 |
|
LDFLAGS := -lpthread -lm |
|
endif |
|
|
|
CFLAGS += -I./GCS_MAVLink/include |
|
SRCS := FGShim.c |
|
|
|
FGShim: $(SRCS) |
|
$(CC) -o $@ $(SRCS) $(CFLAGS) $(LDFLAGS) |
|
|
|
|
|
clean: |
|
rm -f FGShim *~
|
|
|