I have a very simple question.I speficy the source files for a program in makefile as follows
PROGRAM = sq.exe
all: $(PROGRAM)
########### list of C++ source files
CPPSRCS = \
main.cpp
.......
........
########### build a list of all .obj files
OBJS = $(CPPSRCS:.cpp=.obj) $(CSRCS:.c=.obj)
########### how to link .obj files to create an executable
$(PROGRAM): $(OBJS)
$(link32) -out:$@ $(OBJS) $(LIBS) $(linkflags)
Now in case i have a large number of source files - how can i specify at directory level - viz. all cpp files under directory 'source'?
PROGRAM = sq.exe
all: $(PROGRAM)
########### list of C++ source files
CPPSRCS = \
main.cpp
.......
........
########### build a list of all .obj files
OBJS = $(CPPSRCS:.cpp=.obj) $(CSRCS:.c=.obj)
########### how to link .obj files to create an executable
$(PROGRAM): $(OBJS)
$(link32) -out:$@ $(OBJS) $(LIBS) $(linkflags)
Now in case i have a large number of source files - how can i specify at directory level - viz. all cpp files under directory 'source'?