Hi NG,
I have the following MakeFile:
# Compiler
#---------------------------------------
CC = g++
APP = snake-client
# Compilerflags
#---------------------------------------
#CFLAGS += -O2
# Libraries
#---------------------------------------
LIB = -lncurses
# Sourcedateien
#---------------------------------------
SRC = snake-client.cpp CCursesWrapper.cpp
# Objektdateien
#---------------------------------------
OBJ = $(SRC:.cpp=.o)
$(APP): $(OBJ)
$(CC) $(OBJ) -o $(APP) $(LIB)
clean:
rm *.o
My problem is, I have a CCursesWrapper.h. I want to add this file to the
MakeFile, so that it will be included and newly compiled if I change the
CCursesWrapper.h. How can I do this?
Thank you
Matthias