-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (31 loc) · 683 Bytes
/
Makefile
File metadata and controls
31 lines (31 loc) · 683 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# this is a makefile of c++ project string
# the standerd c++ compiler in the ubuntu linux is g++
# written by damon on March 11th, 2014
CC :=clang++
CFLAGS :=-Wall -std=c++17 -O3
.PHONY: clean
all: ocp.o dip.o isp.o lsp.o
%.o: %.cpp
$(CC) $(CFLAGS) $< -o $@
clean:
rm -rf *.o
# # TARGET =.
# # CC =g++
# # CFLAGS =-g
# # CFLAGC =-c
# #
# # MAINC =main.cpp
# # STRING =String.cpp
# OBJ =String.o
#
# INCLUDE =-I$(TARGET)
# EXEC =$(TARGET)/main
#
# all: $(EXEC)
# $(EXEC): $(OBJ) $(MAINC)
# $(CC) $(CFLAGS) $(OBJ) S(MAIN) $(INCLUDE) -o $@
# rm -f $(OBJ)
# @rm -f $(OBJ)
# @echo "<<<<<< $@ is created successfunlly! >>>>>>"
# $(OBJ): $(STRING)
# $(CC) $(CFLAGC) $(STRING) -o $@