]>
cygwin.com Git - cygwin-apps/setup.git/blob - Makefile.in
9ce84a09a1e127a7f837f3448fac4428de54e87e
1 # Copyright (c) 2000, Red Hat, Inc.
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
8 # A copy of the GNU General Public License can be found at
11 # Written by Christopher Faylor <cgf@redhat.com>
13 # Makefile for Cygwin installer
20 exec_prefix := @
exec_prefix@
23 etcdir
:= $(exec_prefix)/etc
25 program_transform_name
:= @program_transform_name@
28 INSTALL_PROGRAM
:= @INSTALL_PROGRAM@
29 INSTALL_DATA
:= @INSTALL_DATA@
32 EXEEXT_FOR_BUILD
:= @EXEEXT_FOR_BUILD@
35 CC_FOR_TARGET
:= $(CC
)
38 CFLAGS
:= @CFLAGS@
-Werror
-Winline
-Wall
-Wpointer-arith
-Wcast-align\
39 -Wwrite-strings
-Wstrict-prototypes
-Wmissing-prototypes \
40 -Wmissing-declarations
-Wcomments
41 CXXFLAGS
:= @CXXFLAGS@
$(CFLAGS
) -fno-exceptions
-fno-rtti
47 include $(srcdir)/..
/Makefile.common
49 MINGW_INCLUDES
:= -I.
-I
$(srcdir) -I
$(mingw_source
)/include $(w32api_include
) -I
$(updir
)/bz2lib
51 MINGW_CXXFLAGS
:= -MMD
$(CXXFLAGS
) -mno-cygwin
$(MINGW_INCLUDES
) -mwindows
52 MINGW_CFLAGS
:= -MMD
$(CFLAGS
) -mno-cygwin
$(MINGW_INCLUDES
) -mwindows
53 # to avoid false errors that assembly generates
54 WARNONLY_CFLAGS
:= -MMD @CFLAGS@
-Winline
-Wall
-Wpointer-arith
-Wcast-align \
55 -Wwrite-strings
-Wstrict-prototypes
-Wmissing-prototypes \
56 -Wmissing-declarations
-Wcomments \
57 -mno-cygwin
$(MINGW_INCLUDES
) -mwindows
59 ZLIB
:= zlib
/libzcygw.a
60 BZ2LIB
:= $(bupdir
)/bz2lib
/libbz2.a
61 libmingw32.a
:= $(mingw_build
)/libmingw32.a
62 libuser32
:= $(w32api_lib
)/libuser32.a
63 libkernel32
:= $(w32api_lib
)/libkernel32.a
65 ALL_DEP_LDLIBS
:= $(ZLIB
) $(BZ2LIB
) $(w32api_lib
)/libole32.a
$(w32api_lib
)/libwsock32.a \
66 $(w32api_lib
)/libnetapi32.a
$(w32api_lib
)/libadvapi32.a \
67 $(w32api_lib
)/libuuid.a
$(libkernel32
) $(w32api_lib
)/libuser32.a \
70 ALL_LDLIBS
:= ${patsubst $(mingw_build
)/lib
%.a
,-l
%,\
71 ${patsubst $(w32api_lib
)/lib
%.a
,-l
%,\
72 ${filter-out $(libmingw32
),\
73 ${filter-out $(libuser32
),\
74 ${filter-out $(libkernel32
), $(ALL_DEP_LDLIBS
)}}}}}
76 ALL_LDFLAGS
:= ${filter-out -I
%, \
78 -B
$(w32api_lib
)/ -B
${mingw_build}/ $(MINGW_CFLAGS
) $(LDFLAGS
)}}
80 PROGS
:= setup
$(EXEEXT
)
108 io_stream_cygfile.o \
145 .PHONY
: all install clean realclean
147 all: Makefile
$(PROGS
)
149 setup
$(EXEEXT
): $(OBJS
) $(ALL_DEP_LDLIBS
)
151 $(CXX
) $(MINGW_CXXFLAGS
) -o
$@
${filter-out $(ALL_DEP_LIBS
),$^
}
153 @echo
$(CXX
) ...
-o
$@
$(OBJS
)
154 @
$(CXX
) $(MINGW_CXXFLAGS
) -o
$@
${filter-out $(ALL_DEP_LIBS
),$^
} $(ALL_LDFLAGS
) $(ALL_LDLIBS
)
158 mingw_getopt.o
: $(cygwin_source
)/lib
/getopt.c
160 ${filter-out -I
$(newlib_source
)/%,$(COMPILE_CC
)} $c -o
$(@D
)/$(basename $@
)$o $(MINGW_CFLAGS
) $<
162 @echo
$(CC
) $c -o
$(@D
)/$(basename $@
)$o $(MINGW_CFLAGS
) ...
$^
;\
163 ${filter-out -I
$(newlib_source
)/%,$(COMPILE_CC
)} $c -o
$(@D
)/$(basename $@
)$o $(MINGW_CFLAGS
) $<
167 rm -f
*.o
$(PROGS
) iniparse.c
* iniparse.h
* inilex.c
* *.d
168 $(MAKE
) -C zlib
clean
171 rm -f Makefile config.cache
174 $(SHELL
) $(updir1
)/mkinstalldirs
$(bindir) $(etcdir
)
175 for i in
$(PROGS
) ; do \
176 n
=`echo $$i | sed '$(program_transform_name)'`; \
177 $(INSTALL_PROGRAM
) $$i $(bindir)/$$n; \
180 $(libmingw32
): $(mingw_build
)/Makefile
181 @
$(MAKE
) -C
$(@D
) $(@F
)
183 $(ZLIB
): zlib
/Makefile
184 $(MAKE
) -C
$(@D
) $(@F
) CC
="$(CC)" CFLAGS
='$(MINGW_CFLAGS)'
186 $(BZ2LIB
): $(bupdir
)/bz2lib
/Makefile
187 $(MAKE
) -C
$(@D
) $(@F
) CC
="$(CC)" CFLAGS
='$(MINGW_CFLAGS)'
189 version.c
: $(srcdir)/ChangeLog Makefile
190 V
=`grep '^\$$Revision.*' $(srcdir)/ChangeLog \
191 | sed -e 's/\$$Revision:* *//' \
193 echo
"const char *version = \"$$V\";" > version.tmp
;\
194 mv version.tmp version.c
198 $(WINDRES
) --include-dir
$(srcdir) --include-dir
$(w32api_source
)/include -o
$@
$<
200 @echo
$(WINDRES
) -o
$@
$(<F
)
201 @
$(WINDRES
) --include-dir
$(srcdir) --include-dir
$(w32api_source
)/include -o
$@
$<
206 $(CC
) $(MINGW_CFLAGS
) -c
-o
$@
$<
208 @echo
$(CC
) -c
$(CFLAGS
) ...
$(<F
)
209 @
$(CC
) $(MINGW_CFLAGS
) -c
-o
$@
$<
214 $(CXX
) $(MINGW_CXXFLAGS
) -c
-o
$@
$<
216 @echo
$(CXX
) -c
$(CXXFLAGS
) ...
$(<F
)
217 @
$(CXX
) $(MINGW_CXXFLAGS
) -c
-o
$@
$<
220 autoload.o
: autoload.c
222 $(CC
) $(WARNONLY_CFLAGS
) -c
-o
$@
$< -fno-inline-functions
224 @echo
$(CC
) -c
$(WARNONLY_CFLAGS
) ...
$(<F
) -fno-inline-functions
225 @
$(CC
) $(WARNONLY_CFLAGS
) -c
-o
$@
$< -fno-inline-functions
230 $(CC
) $(WARNONLY_CFLAGS
) -c
-o
$@
$<
232 @echo
$(CC
) -c
$(WARNONLY_CFLAGS
) ...
$(<F
)
233 @
$(CC
) $(WARNONLY_CFLAGS
) -c
-o
$@
$<
236 iniparse.o
: iniparse.
cc
238 $(CXX
) @CXXFLAGS@
$(WARNONLY_CFLAGS
) -fno-exceptions
-fno-rtti
-c
-o
$@
$<
240 @echo
$(CXX
) -c @CXXFLAGS@
$(WARNONLY_CFLAGS
) ...
$(<F
) -fno-exceptions
-fno-rtti
241 @
$(CXX
) @CXXFLAGS@
$(WARNONLY_CFLAGS
) -c
-o
$@
$< -fno-exceptions
-fno-rtti
244 iniparse.
cc iniparse.h
: iniparse.y
245 bison
-d
-o iniparse.
cc $(srcdir)/iniparse.y
246 @mv iniparse.
cc.h iniparse.h
248 inilex.c
: inilex.l iniparse.h
249 flex
-8 $(srcdir)/inilex.l
This page took 0.043015 seconds and 4 git commands to generate.