source: mrpdi-gui/trunk/fuentes/src/Makefile @ 458

Last change on this file since 458 was 458, checked in by mabarracus, 5 years ago

Copy trusty code
Fix dependencies libgtkmm-3.0-1v5, libconfig++9v5

File size: 911 bytes
Line 
1
2APP_NAME=mrpdi-gui
3GTKMM_COMPILE=`pkg-config gtkmm-3.0 --cflags`
4GTKMM_LINK=`pkg-config gtkmm-3.0 --libs`
5MRPDI_LINK=`pkg-config mrpdi --libs`
6LIBCONFIG_COMPILE=`pkg-config libconfig++ --cflags`
7LIBCONFIG_LINK=`pkg-config libconfig++ --libs`
8LIBAPPINDICATOR_COMPILE=`pkg-config appindicator3-0.1 --cflags`
9LIBAPPINDICATOR_LINK=`pkg-config appindicator3-0.1 --libs`
10
11COMPILER_FLAGS=-I ../include/ $(LIBCONFIG_COMPILE) $(LIBAPPINDICATOR_COMPILE)
12LINKER_FLAGS=$(GTKMM_LINK) $(MRPDI_LINK) $(LIBCONFIG_LINK) $(LIBAPPINDICATOR_LINK)
13
14$(APP_NAME): mrpdi-gui.o
15        g++  -o $(APP_NAME) mrpdi-gui.o $(LINKER_FLAGS)
16
17all: $(APP_NAME)
18
19mrpdi-gui.o: mrpdi-gui.cpp
20        g++ $(COMPILER_FLAGS) -c mrpdi-gui.cpp $(GTKMM_COMPILE)
21
22install: $(APP_NAME)
23        cp $(APP_NAME) /usr/bin/
24        mkdir -p /usr/share/mrpdi/gui/
25        cp ../rsrc/*.glade /usr/share/mrpdi/gui/
26        cp ../rsrc/*.svg /usr/share/mrpdi/gui/
27       
28clean:
29        rm -f *.o
30        rm -rf $(APP_NAME)
31       
32
Note: See TracBrowser for help on using the repository browser.