1998-11-25 02:01:09 +08:00
|
|
|
HOME_LOCATION=$(shell pwd)
|
|
|
|
CPLUS= g++
|
1999-02-13 07:45:35 +08:00
|
|
|
OPTS=-g #-DDEBUG
|
1998-11-27 08:56:29 +08:00
|
|
|
INCLUDES=`gtkmm-config --cflags` -I.
|
1998-11-29 04:25:09 +08:00
|
|
|
LDFLAGS=`gtkmm-config --libs` -L/usr/lib -L/usr/X11/lib -L/usr/local/gnome/lib -L/usr/local/ldap/lib -lldap -llber -L/usr/local/kerberos/lib -lkrb5 -lkrb4
|
1998-11-25 02:01:09 +08:00
|
|
|
LIBS=-lXext -lgtkmm -lX11 -lXt -lXxf86dga
|
|
|
|
|
|
|
|
.EXPORT_ALL_VARIABLES:
|
|
|
|
|
1999-02-13 07:45:35 +08:00
|
|
|
SOURCES=My_Window.cc Gtk_LdapTree.cc Gtk_LdapTreeItem.cc Gtk_LdapServer.cc utils.cc main.o
|
|
|
|
OBJECTS=My_Window.o Gtk_LdapTree.o Gtk_LdapTreeItem.o Gtk_LdapServer.o utils.o main.o
|
1998-11-25 02:01:09 +08:00
|
|
|
|
|
|
|
################################################################################
|
|
|
|
|
1999-02-13 07:45:35 +08:00
|
|
|
all: main
|
|
|
|
main: $(OBJECTS)
|
1998-11-25 02:01:09 +08:00
|
|
|
$(CPLUS) $(OBJECTS) -o main $(LDFLAGS)
|
|
|
|
exec
|
|
|
|
|
1999-02-13 07:45:35 +08:00
|
|
|
main.o: main.cc
|
|
|
|
$(CPLUS) -c $(OPTS) $(INCLUDES) $<
|
|
|
|
|
1998-11-25 02:01:09 +08:00
|
|
|
exec: all
|
|
|
|
chmod a+x main
|
|
|
|
ls -al main
|
|
|
|
|
1999-02-13 07:45:35 +08:00
|
|
|
%.o: %.cc %.h
|
1998-11-25 02:01:09 +08:00
|
|
|
$(CPLUS) -c $(OPTS) $(INCLUDES) $<
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f main a.out *.o straced core
|