Original Post
Hi people, I would want to try to make a very simple and short game on linux, for personal experience. coding the program is easy... the language is the same than windows OS... but I've some problems in compiling phase... I've caught from the net a makefile in order to have an idea... but there aren't comments and I don't understand some points. if is not too long, can you translate to me, step by step? My comments are written with capslock activated. (PS: I use knoppix and gcc) thanks friends
GCCFLAGS= -Wall -pedantic -ggdb
LINKERFLAGS=-lpthread
all: Apps MasterCow.exe
Apps: Starter.exe Endless.exe
Sender.exe: Starter.o Util.o
gcc -o Starter.exe ${GCCFLAGS} ${LINKERFLAGS} Starter.o Util.o
Sender.o: Starter.c appdefs.h Util.h
gcc -c ${GCCFLAGS} Starter.c
Receiver.exe: Endless.o Util.o
gcc -o Endless.exe ${GCCFLAGS} ${LINKERFLAGS} Endless.o Util.o
Receiver.o: Endless.c appdefs.h Util.h
gcc -c ${GCCFLAGS} Receiver.c
Ritardatore.o: MasterCow.c appdefs.h Util.h
gcc -c ${GCCFLAGS} MasterCow.c
Ritardatore.exe: MasterCow.o Util.o
gcc -o MasterCow.exe ${GCCFLAGS} ${LINKERFLAGS} Util.o MasterCow.o
Util.o: Util.c
gcc -c ${GCCFLAGS} Util.c
THIS IS EASY, IT REMOVES BOTTOM FILES, BUT WHY REMOVE .EXE FILE??
THESE ARE THAT I WANT, RIGHT???
clean:
rm -f core*
rm -f *.exe
rm -f Starter.o Starter.exe
rm -f Endless.o Endless.exe
rm -f MasterCow.o MasterCow.exe
rm -f Util.o