sideburn-auto n00b
Joined: 22 May 2002 Posts: 10 Location: UK
|
Posted: Mon Feb 17, 2003 8:14 pm Post subject: Makefile says projet is upto date when it isn't |
|
|
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 |
|