42 lines
901 B
Makefile
42 lines
901 B
Makefile
# Makefile
|
|
# This file holds the make rules for the Gtk2 client support
|
|
|
|
# override DEBUG at compile time to enable full debug or remove it all
|
|
DEBUG :=
|
|
|
|
CXX := @CXX@ -Wall
|
|
AR := ar
|
|
DEFS:=
|
|
|
|
INCLUDES:=-I. -I@srcdir@ -I@top_srcdir@ @GTK2_INC@
|
|
CXXFLAGS:=$(CXXFLAGS) @MODULE_CPPFLAGS@ @INLINE_FLAGS@
|
|
LDFLAGS:= -L../.. -lyate
|
|
INCFILES := @top_srcdir@/yateclass.h @top_srcdir@/yatecbase.h @srcdir@/gtk2client.h
|
|
|
|
PROJECT = libgtk2client.a
|
|
SOURCES = gtk2client.cpp
|
|
OBJECTS = $(SOURCES:.cpp=.o)
|
|
|
|
COMPILE = $(CXX) $(DEFS) $(DEBUG) $(INCLUDES) $(CXXFLAGS)
|
|
|
|
prefix = @prefix@
|
|
exec_prefix = @exec_prefix@
|
|
|
|
# include optional local make rules
|
|
-include YateLocal.mak
|
|
|
|
.PHONY: all clean
|
|
all: $(PROJECT)
|
|
|
|
clean:
|
|
@-$(RM) $(PROJECT) $(OBJECTS)
|
|
|
|
$(PROJECT): $(OBJECTS)
|
|
$(AR) rcs $@ $^
|
|
|
|
%.o: @srcdir@/%.cpp $(INCFILES)
|
|
$(COMPILE) -c $<
|
|
|
|
Makefile: @srcdir@/Makefile.in ../../config.status
|
|
cd ../.. && ./config.status
|