makefile question

I'm trying to create a makefile to make executables for flist2c.cpp and mlist2c.cpp what else do I need to put in the makefile

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#this is makefile2c
# creates executable for list2c.cpp list2c.h mlist2c.cpp flist2c.cpp
LIB = /home/courses/cop4530p/LIB
#
CC  = clang++ -std=c++11 -Wall -Wextra
# compiler
INCL = -I. -I$(LIB)/cpp -I$(LIB)/tcpp
# include directories



flist2c.x: list2c.h list2c.cpp flist2c.cpp
       $(CC) $(INCL) -o./flist2c.x flist2c.cpp

mlist2c.x: list2c.h list2c.cpp mlist2c.cpp
       $(CC) $(INCL) -o./mlist2c.x mlist2c.cpp

Topic archived. No new replies allowed.