reorganize
This commit is contained in:
23
Lecture/Week1/makefile
Normal file
23
Lecture/Week1/makefile
Normal file
@@ -0,0 +1,23 @@
|
||||
#makefile comment
|
||||
|
||||
CC = g++
|
||||
CFLAGS = -C
|
||||
LFLAGS =
|
||||
SOURCES = math.cpp main.cpp
|
||||
OBJECTS = $(SOURCES:.cpp=.o)
|
||||
EXECUTABLE = making_ex1
|
||||
|
||||
all: $(EXECUTABLE) $(SOURCES)
|
||||
|
||||
$(EXECUTABLE): $(OBJECTS)
|
||||
$(CC) $(LFLAGS) -o $(EXECUTABLE) $(OBJECTS)
|
||||
|
||||
%.o:%.cpp
|
||||
$(CC) $(CFLAGS) $<
|
||||
|
||||
-include
|
||||
|
||||
clean:
|
||||
rm -f *.o
|
||||
rm -f $(EXECUTABLE)
|
||||
rm -f *.d
|
||||
Reference in New Issue
Block a user