dockapps/libdockapp/examples/basic/Makefile
2014-11-28 16:39:20 +00:00

19 lines
342 B
Makefile

CC=gcc
INSTALL=install
PREFIX=/usr/local
CFLAGS+=-Wall `pkg-config --cflags dockapp`
LIBS=`pkg-config --libs dockapp`
basic: basic.o
$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)
basic.o: basic.c
$(CC) $(CPPFLAGS) $(CFLAGS) -c $<
install:
$(INSTALL) -d $(DESTDIR)$(PREFIX)/bin
$(INSTALL) basic $(DESTDIR)$(PREFIX)/bin
clean:
rm -f basic basic.o