ardupilot/Tools/FlightGear/Makefile

29 lines
378 B
Makefile
Raw Normal View History

2011-09-08 22:31:32 -03:00
#!/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 *~