Skip to content

Commit b8dbc39

Browse files
committed
Gitignore and Makefile improvements
1 parent 1cbe698 commit b8dbc39

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

.gitignore

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
.DS_Store
44

55
# Video files
6-
videos/**/*.*
6+
videos/**/*
77

88
# Compiled Object files
9-
build/**/*.*
9+
build/**/*
1010

1111
# Precompiled Headers
1212
*.gch
@@ -27,4 +27,4 @@ build/**/*.*
2727
*.lib
2828

2929
# Executables
30-
bin/**/*.*
30+
bin/**/*

Makefile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,17 @@ LFLAGS+=`pkg-config --libs opencv`
44

55
PROG=main
66
OBJS=build/$(PROG).o
7+
EXEC=bin/$(PROG)
78

89
.PHONY: all clean
910

1011
build/%.o: src/%.cpp
11-
$(CC) -pthread -c -o $@ $(CFLAGS) $<
12+
$(CC) -pthread -c -o $@ $< $(CFLAGS)
1213

1314
$(PROG): $(OBJS)
14-
$(CC) -pthread -o bin/$(PROG) $(OBJS) $(LFLAGS)
15+
$(CC) -pthread -o $(EXEC) $(OBJS) $(LFLAGS)
1516

1617
all: $(PROG)
1718

1819
clean:
19-
rm -f $(OBJS) bin/$(PROG)
20+
rm -f $(OBJS) $(EXEC)

0 commit comments

Comments
 (0)