Desktop
TARGETS = hayes.so
PREFIX = /usr/local
DESTDIR =
LIBDIR = $(PREFIX)/lib
CC = cc
CPPFLAGSF= -I ../../include
CPPFLAGS=
CFLAGSF = -W `pkg-config --cflags gtk+-2.0`
CFLAGS = -Wall -g -O2 -pedantic -fPIC
AR = ar -rc
RANLIB = ranlib
LD = $(CC) -shared
RM = rm -f
LN = ln -f
MKDIR = mkdir -p
INSTALL = install
all: $(TARGETS)
hayes_OBJS = hayes.o
hayes_CFLAGS = $(CPPFLAGSF) $(CPPFLAGS) $(CFLAGSF) $(CFLAGS)
hayes_LDFLAGS = $(LDFLAGSF) $(LDFLAGS)
hayes.so: $(hayes_OBJS)
$(LD) -o hayes.so $(hayes_OBJS) $(hayes_LDFLAGS)
hayes.o: hayes.c
$(CC) $(hayes_CFLAGS) -c hayes.c
clean:
$(RM) -- $(hayes_OBJS)
distclean: clean
$(RM) -- $(TARGETS)
install: $(TARGETS)
$(MKDIR) $(DESTDIR)$(LIBDIR)/Phone/modem
$(INSTALL) -m 0644 -- hayes.so $(DESTDIR)$(LIBDIR)/Phone/modem/hayes.so
uninstall:
$(RM) -- $(DESTDIR)$(LIBDIR)/Phone/modem/hayes.so
.PHONY: all clean distclean install uninstall