Clean up code and Makefile, remove binary files by yarwelp · Pull Request #1 · ayoungprogrammer/WebcamCodeScanner · GitHub
Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file removed .DS_Store
Binary file not shown.
2 changes: 2 additions & 0 deletions .gitignore
22 changes: 5 additions & 17 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,20 +1,8 @@
CC=g++
ARCH=-arch x86_64


INCLUDE_FLAGS=-I/usr/local/include
CFLAGS=-c -Wall $(INCLUDE_FLAGS)
LDFLAGS= -L/usr/local/lib -lopencv_core -lopencv_highgui -lopencv_imgproc -lzbar

SOURCES = main.cpp
OBJECTS=$(SOURCES:.cpp=.o)

EXECUTABLE=main

all : $(SOURCES) $(EXECUTABLE)
CFLAGS=-Wall $(INCLUDE_FLAGS)
LDFLAGS= -L/usr/local/lib -lopencv_core -lopencv_highgui -lopencv_imgproc -lopencv_videoio -lzbar

$(EXECUTABLE) : $(OBJECTS) Makefile
$(CC) $(ARCH) $(LDFLAGS) $(OBJECTS) -o $@
all: main

.cpp.o:
$(CC) $(CFLAGS) $< -o $@
main: main.cpp
$(CXX) $(CFLAGS) $(LDFLAGS) $< -o $@
Binary file removed main
Binary file not shown.
134 changes: 67 additions & 67 deletions main.cpp
Binary file removed main.o
Binary file not shown.