3 DATA_DIR
=$(PREFIX
)/share
/gmidimonitor
5 CFLAGS
:= $(strip $(shell pkg-config
--cflags gtk
+-2.0 libglade-2.0 lash-1.0
)) -Wall
-Werror
-DDATA_DIR
='"$(DATA_DIR)"'
6 LIBS
:= $(strip $(shell pkg-config
--libs gtk
+-2.0 libglade-2.0 gmodule-2.0 gthread-2.0 alsa lash-1.0
))
8 OBJECTS
=about.o path.o glade.o main.o
10 # rebuild by default, until we have dependecies
13 gmidimonitor
: $(OBJECTS
)
14 gcc
$(LIBS
) -o
$@
$(OBJECTS
)
20 rebuild
: clean gmidimonitor
23 install gmidimonitor
$(BIN_DIR
)
24 install -d
$(DATA_DIR
)
25 install --mode
=644 gmidimonitor.glade
$(DATA_DIR
)