generated from glad3n/Command-line-text-processing
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmake.snippets
43 lines (31 loc) · 861 Bytes
/
make.snippets
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
32
33
34
35
36
37
38
39
40
41
42
43
snippet make "this creates a simple makefile for c++" b
CC = g++
CFLAGS = -g
INCLUDE =
LIBS =
# (TODO: enter filename without extension)
FILENAME =
all: $(FILENAME).cpp
@$(CC) $(CFLAGS) $(INCLUDE) $(FILENAME).cpp -o $(FILENAME) $(LIBS)
run:
@./$(FILENAME)
clean:
rm ./$(FILENAME)
endsnippet
snippet make_pointer_cmake "this is a simple makefile to point at the makefile generated by cmake" b
# (TODO: enter project name here)
PROJECT_NAME = assimp_0
all:
@cd ../build && make
@echo "\033[92m ------------- Compilation Successful ------------------- \033[0m"
run:
@../bin/$(PROJECT_NAME)
@echo "\033[92m ------------- Execution Successful ------------------- \033[0m"
debug:
cd ../build && \
cmake -G "CodeBlocks - Unix Makefiles" .. && \
codeblocks ${PROJECT_NAME}.cbp &! > /dev/null
clean:
rm -rf ../build/*
rm ../bin/*
endsnippet