Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Makefile says projet is upto date when it isn't
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
sideburn-auto
n00b
n00b


Joined: 22 May 2002
Posts: 10
Location: UK

PostPosted: Mon Feb 17, 2003 8:14 pm    Post subject: Makefile says projet is upto date when it isn't Reply with quote

hello,

I've made a makefile for my project but whenever I edit a source file and type "make", it doesn't recompile it. It works fine if I delete the .o files manually though.

I've never written a makefile for gcc before and I've probably done it wrong.

anyway, here's the makefile:

Code:

CC=g++ -g
CXXFLAGS=`sdl-config --cflags`
LIBS=`sdl-config --libs` -lGL -lGLU -lpng -lfmod-3.61

OBJ=enemy_ship.o font.o game.o input.o level.o log.o main.o model_ms3d.o player_ship.o ship.o system.o texture.o timer.o weapon.o

pm3d: $(OBJ)
        $(CC) $(CXXFLAGS) -o pm3d  $(OBJ) $(LIBS)

enemy_ship.o:
        $(CC) $(CXXFLAGS)  -o enemy_ship.o  -c ./src/enemy_ship.cpp

font.o:
        $(CC) $(CXXFLAGS)  -o font.o  -c ./src/font.cpp

etc ...


cheers,
rich
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum