This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Makefiles
- To: lauris at inbox dot lv
- Subject: Re: Makefiles
- From: "Russ.Shaw" <russell at webaxs dot net>
- Date: Sat, 26 Aug 2000 22:19:45 +1000
- CC: gcc-help at gcc dot gnu dot org
- References: <200008260859.e7Q8x5n18339@www.inbox.lv>
It means all the targets are upto date, so there's nothing to make.
lauris@inbox.lv wrote:
>
> I have makefile (c:\atlantis\makefile):
> ----------------------
> CFLAGS = -g -I. -I..
>
> RULESET_OBJECTS = extra.o rules.o skillshows.o specials.o spells.o world.o
>
> ENGINE_OBJECTS = alist.o aregion.o army.o astring.o battle.o faction.o \
> fileio.o game.o gamedefs.o gameio.o items.o main.o \
> market.o monthorders.o npc.o object.o orders.o \
> parseorders.o production.o runorders.o shields.o skills.o \
> unit.o
>
> OBJECTS = $(patsubst %.o,obj/%.o,$(RULESET_OBJECTS)) \
> $(patsubst %.o,obj/%.o,$(ENGINE_OBJECTS)) \
> obj/i_rand.o
>
> game31: $(OBJECTS)
> g++ $(CFLAGS) -o standard $(OBJECTS)
>
> clean:
> rm -f $(OBJECTS)
> rm -f standard
>
> $(patsubst %.o,obj/%.o,$(RULESET_OBJECTS)): obj/%.o: %.cpp
> g++ $(CFLAGS) -c -o $@ $<
>
> $(patsubst %.o,obj/%.o,$(ENGINE_OBJECTS)): obj/%.o: ../%.cpp
> g++ $(CFLAGS) -c -o $@ $<
>
> obj/i_rand.o: ../i_rand.c
> gcc $(CFLAGS) -c -o $@ $<
> --------------------------
> when compiling with gcc 2.6.3
> make says:
> make.exe: nothing to be done for 'C:\atlantis\makefile'
> Where is the problem, please help me!
> Lauris
>
> -- Tavs bezmaksas pasts Inbox.lv
--
*******************************************
* Russell Shaw, B.Eng, M.Eng(Research) *
* email: russell@webaxs.net *
* Victoria, Australia *
*******************************************