[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[myserver-commit] [2796] Build process now behaves according to GNU stan
From: |
Francesco Pipita |
Subject: |
[myserver-commit] [2796] Build process now behaves according to GNU standards |
Date: |
Wed, 10 Sep 2008 09:42:15 +0000 |
Revision: 2796
http://svn.sv.gnu.org/viewvc/?view=rev&root=myserver&revision=2796
Author: francesco_pipita
Date: 2008-09-10 09:42:14 +0000 (Wed, 10 Sep 2008)
Log Message:
-----------
Build process now behaves according to GNU standards
Modified Paths:
--------------
trunk/myserver/src/Makefile.am
Modified: trunk/myserver/src/Makefile.am
===================================================================
--- trunk/myserver/src/Makefile.am 2008-09-09 20:57:37 UTC (rev 2795)
+++ trunk/myserver/src/Makefile.am 2008-09-10 09:42:14 UTC (rev 2796)
@@ -1,37 +1,29 @@
# Makefile for MyServer (./src)
-SUBDIRS = base conf connection connections_scheduler filter\
- http_handler log plugin protocol server
.
-
-
-#build_subdirs:
-# list='$(SUBDIRS)'; for subdir in $$list; do \
-# (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) all) \
-# done;
-
-libmyserver.a:
- rm -f libmyserver.a
- find -iregex .*\\.$(OBJEXT) | xargs $(AR) cru libmyserver.a
- $(RANLIB) libmyserver.a
-
+SUBDIRS = base conf connection connections_scheduler filter http_handler \
+ log plugin protocol server
+INCLUDES = $(all_includes)
bin_PROGRAMS = myserver
myserver_SOURCES = myserver.cpp
-
-INCLUDES = $(all_includes)
-
+myserver_CXXFLAGS = $(CXXFLAGS) $(XML_CFLAGS) -DHOST_STR=\"$(build)\"
-DPREFIX=\"$(prefix)\"
+myserver_LDFLAGS = -rdynamic
myserver_LDADD = libmyserver.a $(all_libraries) $(PTHREAD_LIB) $(IDN_LIB) \
$(XNET_LIB) $(EVENT_LIB) $(DL_LIB) $(OPENSSL_LIB) $(ZLIB_LIB) \
$(XML_LIBS) $(LDFLAGS)
-myserver_DEPENDENCIES = libmyserver.a
+libmyserver.a:
+ rm -f libmyserver.a
+ find -iregex .*\\.$(OBJEXT) | xargs $(AR) cru libmyserver.a
+ $(RANLIB) libmyserver.a
-myserver_CXXFLAGS = $(CXXFLAGS) $(XML_CFLAGS) -DHOST_STR=\"$(build)\"
-DPREFIX=\"$(prefix)\"
-myserver_LDFLAGS = -rdynamic
-
build_parser: protocol/ftp/ftp_lexer.lpp protocol/ftp/ftp_parser.ypp
bison --defines=../include/protocol/ftp/ftp_parser.h
protocol/ftp/ftp_parser.ypp
cp protocol/ftp/ftp_parser.tab.cpp protocol/ftp/ftp_parser.cpp
flex --header-file=../include/protocol/ftp/ftp_lexer.h
protocol/ftp/ftp_lexer.lpp
cp ./protocol/ftp/lex.yy.c ./protocol/ftp/ftp_lexer.cpp
-all : myserver${EXEEXT}
+all-local: libmyserver.a myserver${EXEEXT}
cp myserver${EXEEXT} ../binaries
+
+clean-local:
+ rm -f libmyserver.a
+ find -iregex .*\\.$(OBJEXT) | xargs rm -f
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [myserver-commit] [2796] Build process now behaves according to GNU standards,
Francesco Pipita <=