Commit 14611ac7 authored by Oliver Bock's avatar Oliver Bock
Browse files

Target OS X Yosemite (10.10) when building lib

* In line with UI
* Supports more users :-)
parent 14b6e10b
ifeq ($(OS),Windows_NT)
detected_OS := Windows
else
detected_OS := $(shell uname -s)
endif
ifeq ($(detected_OS),Darwin)
CXXFLAGS += -mmacosx-version-min=10.10
endif
all: libantenna.a antenna_lib.o antenna_main
antenna_main: antenna_lib.o antenna_main.cpp antenna_lib.h
g++ -o antenna_main antenna_main.cpp antenna_lib.o -lm
g++ $(CXXFLAGS) -o antenna_main antenna_main.cpp antenna_lib.o -lm
antenna_lib.o: antenna_lib.cpp antenna_lib.h
g++ -c antenna_lib.cpp
g++ $(CXXFLAGS) -c antenna_lib.cpp
libantenna.a: antenna_lib.o
ar rcs libantenna.a antenna_lib.o
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment