forked from suleman1971/boinctui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.in
63 lines (51 loc) · 2.04 KB
/
Makefile.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
include config
DEFS += -DVERSION=$(VERSION) @DEFS@
CPP = @CXX@
INSTALL_PROGRAM = install
SRCS = ncolorstring.cpp nhline.cpp nvline.cpp nscrollview.cpp nselectlist.cpp nview.cpp \
ngroup.cpp nstatictext.cpp nform.cpp nprogram.cpp nmenu.cpp nmessagebox.cpp \
nscrollbar.cpp \
kclog.cpp cfg.cpp srvdata.cpp mbstring.cpp net.cpp resultparse.cpp resultdom.cpp \
mainprog.cpp infopanel.cpp mainwin.cpp msgwin.cpp taskwin.cpp tui-main.cpp \
cfgform.cpp topmenu.cpp about.cpp helpwin.cpp addprojectform.cpp addmgrform.cpp \
taskinfowin.cpp statwin.cpp
OBJS = $(patsubst %.cpp,$(ODIR)/%.o,$(SRCS))
LIBS = @LIBS@
LDFLAGS = @LDFLAGS@ $(LIBS)
CXXFLAGS = @CXXFLAGS@
ODIR = .obj
SDIR = src
exec_prefix = @prefix@
prefix = @prefix@
DATAROOTDIR = @datarootdir@
BINDIR = @bindir@
PACKAGE_TARNAME = @PACKAGE_TARNAME@
DOCDIR = $(DATAROOTDIR)@docdir@
BINDIR = @bindir@
ifeq (@HAVE_OPENSSL@, 1)
DEFS += -DHAVE_OPENSSL
endif
###############################################################################
all: createobj $(OBJS)
@echo "\nLinking...\n"
$(CPP) -o $(PACKAGE_TARNAME) $(OBJS) $(LDFLAGS)
$(ODIR)/%.o: $(SDIR)/%.cpp
@echo " "
$(CPP) -c $(CXXFLAGS) $(CPPFLAGS) $(DEFS) -o $(ODIR)/$*.o $<
clean:
rm -f $(ODIR)/*.o $(PACKAGE_TARNAME) config.log
install:
$(INSTALL_PROGRAM) -d $(DESTDIR)$(BINDIR)
$(INSTALL_PROGRAM) $(PACKAGE_TARNAME) $(DESTDIR)$(BINDIR)
$(INSTALL_PROGRAM) -d $(DESTDIR)$(DOCDIR)
$(INSTALL_PROGRAM) changelog $(DESTDIR)$(DOCDIR)
createobj:
@if ! [ -d "$(ODIR)" ] ; then echo "create $(ODIR)"; mkdir $(ODIR); fi
#srctgz: clean
# @if ! [ -d "../$(PACKAGE_TARNAME)-$(VERSION)" ] ; then echo "create symlink ../$(PACKAGE_TARNAME)-$(VERSION)->$(notdir $(CURDIR))"; ln -n -s $(notdir $(CURDIR)) ../$(PACKAGE_TARNAME)-$(VERSION); fi
# cd ..; tar --exclude-vcs -vzcf $(PACKAGE_TARNAME)_$(VERSION).orig.tar.gz \
# $(PACKAGE_TARNAME)-$(VERSION)/src \
# $(PACKAGE_TARNAME)-$(VERSION)/redhat \
# $(PACKAGE_TARNAME)-$(VERSION)/Makefile.in \
# $(PACKAGE_TARNAME)-$(VERSION)/configure.in \
# $(PACKAGE_TARNAME)-$(VERSION)/config