Revision c3078dfc Makefile

View differences:

Makefile
3 3
       CXXFLAGS += -g3
4 4
endif
5 5

  
6
INCS = -Iinclude -I3rdparty/snmp++/include
6
UNAME = $(shell uname -s)
7

  
8
ifeq ($(UNAME), Darwin)
9
	BOOST_SUFFIX = -mt
10
endif
11

  
12
INCS = -I/opt/local/include -Iinclude -I3rdparty/snmp++/include
7 13
CXXFLAGS += -W -Wall -Wextra $(INCS) $(DEFS)
8
LIBS = 3rdparty/snmp++/libsnmp++.a \
9
       -lboost_system \
10
       -lboost_program_options \
14
LIBS = -L/opt/local/lib \
15
       3rdparty/snmp++/libsnmp++.a \
16
       -lboost_system$(BOOST_SUFFIX) \
17
       -lboost_program_options$(BOOST_SUFFIX) \
11 18
       -lcurl \
12 19
       -lssl \
13 20
       -lcrypto \
......
45 52
include/version.h: version
46 53

  
47 54
version:
48
	@sed 's/@VERSION@/$(VERSION)/g' include/version.h.in > include/version.h
49
	@sed -i 's/@GIT_SHA@/'`git rev-parse --short HEAD`'/g' include/version.h
55
	@sed 's/@VERSION@/$(VERSION)/g' include/version.h.in > include/version.h.tmp
56
	@sed "s/@GIT_SHA@/$$(git rev-parse --short HEAD)/g" include/version.h.tmp > include/version.h
57
	@rm include/version.h.tmp
50 58

  
51 59
$(PROG): version $(subst .cpp,.o,$(SOURCES)) snmplib
52 60
	$(CXX) $(subst .cpp,.o,$(SOURCES)) $(LIBS) -o $@

Also available in: Unified diff