Vous avez des exemples de makefile pour voir ? (quiche inside) - C++ - Programmation
Marsh Posté le 24-01-2003 à 16:35:06
http://cvs.sourceforge.net/cgi-bin [...] cvs-markup 
 
note: automake c'est mieux, mais j'ai jamais pris la peine d'apprendre a m'en servir
Marsh Posté le 24-01-2003 à 16:37:52
| lorill a écrit : note: automake c'est mieux, mais j'ai jamais pris la peine d'apprendre a m'en servir  | 
 
+1 
lui et son acolyte autoconf me semblent assez imbuvables 
Marsh Posté le 24-01-2003 à 16:46:17
# Makefile.in generated automatically by automake 1.5 from Makefile.am. 
 
# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 
# Free Software Foundation, Inc. 
# This Makefile.in is free software; the Free Software Foundation 
# gives unlimited permission to copy and/or distribute it, 
# with or without modifications, as long as this notice is preserved. 
 
# This program is distributed in the hope that it will be useful, 
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without 
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A 
# PARTICULAR PURPOSE. 
 
 
 
########################################################################### 
# Some rules for building asm files: 
 
SHELL = /bin/sh 
 
srcdir = . 
top_srcdir = ../.. 
 
prefix = /local 
exec_prefix = ${prefix} 
 
bindir = ${exec_prefix}/bin 
sbindir = ${exec_prefix}/sbin 
libexecdir = ${exec_prefix}/libexec 
datadir = ${prefix}/share 
sysconfdir = ${prefix}/etc 
sharedstatedir = ${prefix}/com 
localstatedir = ${prefix}/var 
libdir = ${exec_prefix}/lib 
infodir = ${prefix}/info 
mandir = ${prefix}/man 
includedir = ${prefix}/include 
oldincludedir = /usr/include 
pkgdatadir = $(datadir)/mpeg4ip 
pkglibdir = $(libdir)/mpeg4ip 
pkgincludedir = $(includedir)/mpeg4ip 
top_builddir = ../.. 
 
ACLOCAL = aclocal 
AUTOCONF = autoconf 
AUTOMAKE = automake 
AUTOHEADER = autoheader 
 
INSTALL = /usr/bin/install -c 
INSTALL_PROGRAM = ${INSTALL} 
INSTALL_DATA = ${INSTALL} -m 644 
INSTALL_SCRIPT = ${INSTALL} 
INSTALL_HEADER = $(INSTALL_DATA) 
transform = s,x,x, 
NORMAL_INSTALL = : 
PRE_INSTALL = : 
POST_INSTALL = : 
NORMAL_UNINSTALL = : 
PRE_UNINSTALL = : 
POST_UNINSTALL = : 
host_alias = i686-pc-linux-gnu 
host_triplet = i686-pc-linux-gnu 
AMTAR = tar 
AS = gcc 
ASFLAGS =  
AWK = gawk 
BILLS_CPPWARNINGS = -Wall -Wmissing-prototypes -Wmissing-declarations -Wno-char-subscripts -Woverloaded-virtual -Wno-unknown-pragmas -Wno-deprecated 
BILLS_CWARNINGS = -Wall -Wmissing-prototypes -Wmissing-declarations -Wno-char-subscripts -Wno-unknown-pragmas 
CC = gcc 
CCAS = gcc 
CCASFLAGS =  
CFLAGS = -g -O2 -DUSE_MMX -DMPEG4IP 
CXX = c++ 
CXXFLAGS = -g -O2 -DUSE_MMX -DMPEG4IP 
DEPDIR = .deps 
DLLTOOL = @DLLTOOL@ 
ECHO = echo 
EXEEXT =  
GLIB_CFLAGS = -I/usr/include/glib-1.2 -I/usr/lib/glib/include 
GLIB_CONFIG = /usr/bin/glib-config 
GLIB_LIBS = -L/usr/lib -lglib 
GTK_CFLAGS = -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include 
GTK_CONFIG = /usr/bin/gtk-config 
GTK_LIBS = -L/usr/lib -L/usr/X11R6/lib -lgtk -lgdk -rdynamic -lgmodule -lglib -ldl -lXi -lXext -lX11 -lm 
INSTALL_STRIP_PROGRAM = ${SHELL} $(install_sh) -c -s 
LIBTOOL = $(SHELL) $(top_builddir)/libtool 
LN_S = ln -s 
NASM = /usr/bin/nasm 
NASMFLAGS = -f elf 
OBJC = ??? 
OBJDUMP = @OBJDUMP@ 
OBJEXT = o 
PACKAGE = mpeg4ip 
PLAYER_PLUGIN_DIR = ${exec_prefix}/lib/mp4player_plugin 
RANLIB = ranlib 
SDL_LIBS = $(top_builddir)/lib/SDL/src/libSDL.la -lpthread 
STRIP = strip 
USENASM = true 
VERSION = 0.9.6 
X_CFLAGS =  -I/usr/X11R6/include 
X_EXTRA_LIBS =  
X_LIBS =  -L/usr/X11R6/lib 
X_PRE_LIBS =  -lSM -lICE 
am__include = include 
am__quote =  
install_sh = /udd/bdeniaud/archivage/mpeg4ip2/install-sh 
 
STRIP_FPIC = sh $(top_srcdir)/strip_fPIC.sh 
 
SUFFIXES = .asm 
 
...etc... 
 
install \ 
 install-am install-binPROGRAMS install-data install-data-am \ 
 install-data-recursive install-exec install-exec-am \ 
 install-exec-recursive install-info install-info-am \ 
 install-info-recursive install-man install-recursive \ 
 install-strip installcheck installcheck-am installdirs \ 
 installdirs-am installdirs-recursive maintainer-clean \ 
 maintainer-clean-generic maintainer-clean-recursive mostlyclean \ 
 mostlyclean-compile mostlyclean-generic mostlyclean-libtool \ 
 mostlyclean-recursive tags tags-recursive uninstall \ 
 uninstall-am uninstall-binPROGRAMS uninstall-info-am \ 
 uninstall-info-recursive uninstall-recursive 
 
 
.asm.lo: 
 $(LIBTOOL) --mode=compile $(STRIP_FPIC) $(NASM) -f elf $< 
# Tell versions [3.59,3.63) of GNU make to not export all variables. 
# Otherwise a system limit (for SysV at least) may be exceeded. 
.NOEXPORT: 
 
 
C bo automake 
Marsh Posté le 24-01-2003 à 18:28:05
google ou le manuel de make sur gnu.org 
http://www.gnu.org/manual/make/index.html
Marsh Posté le 24-01-2003 à 16:17:58
Histoire que j'adapte pour mon prog ....
merci !!!
---------------
HFR - Mes sujets pour Chrome - Firefox - vérifie les nouveaux posts des topics suivis/favoris