Makefile 554 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
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


12
all: libantenna.a antenna_lib.o antenna_main
13

14
antenna_main: antenna_lib.o antenna_main.cpp antenna_lib.h
15
	g++ $(CXXFLAGS) -o antenna_main antenna_main.cpp antenna_lib.o -lm
16

17
antenna_lib.o: antenna_lib.cpp antenna_lib.h
18
	g++ $(CXXFLAGS) -c antenna_lib.cpp
19

20
21
22
libantenna.a: antenna_lib.o
	ar rcs libantenna.a antenna_lib.o

23
clean:
24
	rm -f antenna_lib.o libantenna.a antenna_main