Re: [AD] patch for makefile.vc |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
- To: alleg-developers@xxxxxxxxxx
- Subject: Re: [AD] patch for makefile.vc
- From: guilt <karthikkumar@xxxxxxxxxx>
- Date: Tue, 29 Mar 2005 14:34:43 +0530
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=KKRGP5udZ+uy9IR/dlF4xkyJLKcZu2BoqLPcW8veg8WevId2NZ4447bJeBPwlHdMTkKNylH1Jr9yHwZCy6bPXV5GdSFoCaFAMaqjuykui0+fTN/PIfYVRQFxRJrB4pDtNnMw4CTTOhf4w+26ki4P00DpI/9zZTbibkQEaEUyxEc=
ok, can u give me the makefile u have made (with the patch applied)?
so i can make a re- makefile.vc and give the patch? i have tested it
here with icl/gcc combo.
On Tue, 29 Mar 2005 19:00:58 +1000, AJ <aj@xxxxxxxxxx> wrote:
> sorry dude, i wont make patches for things i can not test.
> i do not have icl.
>
> aj.
>
> guilt wrote:
> > AJ, can u unify this patch with the one i provided for icl and give me
> > a diff? Please help me.. I can't diff or patch here :(
> >
> >
> > On Tue, 29 Mar 2005 18:48:37 +1000, AJ <aj@xxxxxxxxxx> wrote:
> >
> >>the following patch allows users to specify the P4/AthlonXP architecture
> >>for compiling allegro. for msvc
> >>
> >>specifying TARGET_ARCH_EXCL=7 is like passing -G7 (targets P4/AthlonXP
> >>arch) if the user does not pass anything, it defaults to what it
> >>currently is set to -GB (blended, which on msvc7 is PPro,P2,P3) in msvc6
> >>is might have been older architectures (presuming P1,PPro,P2).
> >>
> >>example (with option, specifies -G7):
> >>
> >>C:\allegro>make TARGET_ARCH_EXCL=7
> >>Compiling Allegro for MSVC, optimised statically linked. Please wait...
> >>gcc -O -Wall -Werror -o obj/msvc/runner.exe src/misc/runner.c
> >>obj/msvc/runner.exe cl @ -nologo -DALLEGRO_STATICLINK -DALLEGRO_SRC -W1
> >>-Gd -O2 -MD -GL -G7 -I. -I./include -Foobj/msvc/alleg_s/allegro.obj -c
> >>src/allegro.c
> >>allegro.c
> >>obj/msvc/runner.exe cl @ -nologo -DALLEGRO_STATICLINK -DALLEGRO_SRC -W1
> >>-Gd -O2 -MD -GL -G7 -I. -I./include -Foobj/msvc/alleg_s/blit.obj -c
> >>src/blit.c
> >>blit.c
> >>obj/msvc/runner.exe cl @ -nologo -DALLEGRO_STATICLINK -DALLEGRO_SRC -W1
> >>-Gd -O2
> >>
> >>example (without option, defautls back to -GB):
> >>
> >>C:\allegro>make
> >>Compiling Allegro for MSVC, optimised statically linked. Please wait...
> >>obj/msvc/runner.exe cl @ -nologo -DALLEGRO_STATICLINK -DALLEGRO_SRC -W1
> >>-Gd -O2 -MD -GL -GB -I. -I./include -Foobj/msvc/alleg_s/config.obj -c
> >>src/config.c
> >>config.c
> >>obj/msvc/runner.exe cl @ -nologo -DALLEGRO_STATICLINK -DALLEGRO_SRC -W1
> >>-Gd -O2 -MD -GL -GB -I. -I./include -Foobj/msvc/alleg_s/datafile.obj -c
> >>src/datafile.c
> >>datafile.c
> >>
> >>here is the patch:
> >>
> >>--- \makefile.vc 2005-02-19 06:05:00.000000000 +1100
> >>+++ makefile.vc 2005-03-29 17:37:10.234375000 +1000
> >>@@ -163,7 +163,7 @@
> >>
> >> # -------- optimised build --------
> >>
> >>-CFLAGS = $(WFLAGS) -Gd -O2 -GB $(RUNTIME_FLAGS)
> >>+CFLAGS = $(WFLAGS) -Gd -O2 $(RUNTIME_FLAGS)
> >> SFLAGS = -Wall
> >> LFLAGS = -release
> >> LIBPARMS =
> >>@@ -174,6 +174,12 @@
> >> LIBPARMS += -LTCG
> >> endif
> >>
> >>+ifdef TARGET_ARCH_EXCL
> >>+ CFLAGS += -G$(TARGET_ARCH_EXCL)
> >>+else
> >>+ CFLAGS += -GB
> >>+endif
> >>+
> >> endif
> >> endif
> >>
> >>-------------------------------------------------------
> >>SF email is sponsored by - The IT Product Guide
> >>Read honest & candid reviews on hundreds of IT Products from real users.
> >>Discover which products truly live up to the hype. Start reading now.
> >>http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> >>--
> >>https://lists.sourceforge.net/lists/listinfo/alleg-developers
> >>
> >
> >
> >
>
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> --
> https://lists.sourceforge.net/lists/listinfo/alleg-developers
>
--
Karthik
http://guilt.bafsoft.net