Debian Codegraph @

src/win64/rwp/Makefile.am

raw
1 # Makefile.am adapted from Cygwin ioperm
2 # http://openwince.sourceforge.net/ioperm/
3 #
4 # Copyright (C) 2003 ETC s.r.o.
5 # Copyright (C) 2007 Kevin Kofler
6 #
7 # This program is free software; you can redistribute it and/or
8 # modify it under the terms of the GNU General Public License
9 # as published by the Free Software Foundation; either version 2
10 # of the License, or (at your option) any later version.
11 #
12 # This program is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 # GNU General Public License for more details.
16 #
17 # You should have received a copy of the GNU General Public License
18 # along with this program; if not, write to the Free Software Foundation,
19 # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 #
21 # Written by Marcel Telka <[email protected]>, 2003.
22 #
23
24 EXTRA_DIST = rwports.c rwports.rc common.ver ntverp.h ReadMe.txt rwports.bat rwpsetup.bat net.bat rwpsetup.dsp rwpsetup.dsw SOURCES NMAKEFILE
25
26 if OS_WIN32
27 bin_PROGRAMS = rwpsetup
28 rwpsetup_SOURCES = rwpsetup.c rwports.h
29 bin_SCRIPTS = rwports.sys
30 else
31 EXTRA_DIST += rwpsetup.c rwports.h
32 endif
33
34 # We will need a working x86_64-pc-mingw32 toolchain to build this.
35 #
36 #RC ?= windres
37 #
38 #rwports.$(OBJEXT): $(srcdir)/rwports.c $(srcdir)/rwports.h
39 # $(CC) -Wall -Os -c $(srcdir)/rwports.c -o rwports.$(OBJEXT)
40 #
41 #rwports-rc.$(OBJEXT): $(srcdir)/rwports.rc $(srcdir)/common.ver $(srcdir)/ntverp.h
42 # $(RC) -I. rwports.rc $@
43 #
44 #base.tmp: rwports.$(OBJEXT) rwports-rc.$(OBJEXT)
45 # $(CC) -Wl,--base-file,base.tmp \
46 # -Wl,--entry,_DriverEntry@8 \
47 # -nostartfiles -nostdlib \
48 # -o junk.tmp \
49 # rwports.$(OBJEXT) rwports-rc.$(OBJEXT) \
50 # -lntoskrnl
51 # -rm -f junk.tmp
52 #
53 #temp.exp: base.tmp
54 # $(DLLTOOL) --dllname rwports.sys --base-file base.tmp --output-exp temp.exp
55 #
56 #rwports.sys: rwports.$(OBJEXT) rwports-rc.$(OBJEXT) temp.exp
57 # $(CC) -Wl,--subsystem,native \
58 # -Wl,--image-base,0x10000 \
59 # -Wl,--file-alignment,0x1000 \
60 # -Wl,--section-alignment,0x1000 \
61 # -Wl,--entry,_DriverEntry@8 \
62 # -Wl,temp.exp \
63 # -mdll -nostartfiles -nostdlib \
64 # -o rwports.sys \
65 # rwports.$(OBJEXT) rwports-rc.$(OBJEXT) \
66 # -lntoskrnl
67 # $(STRIP) rwports.sys
68
69 rwports.sys: ../../../build/msvc/rwports.sys
70 cp -f ../../../build/msvc/rwports.sys rwports.sys
71
72 CLEANFILES = rwports.sys rwports.$(OBJEXT) rwports-rc.$(OBJEXT) base.tmp temp.exp