This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Makefiles


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                *
*******************************************

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]