Skip to content

Commit

Permalink
fixed ivcc makefile to use clang. the new gcc does not like the pragm…
Browse files Browse the repository at this point in the history
…a syntax in libusb
  • Loading branch information
mkassner committed May 27, 2014
1 parent 683af5d commit 22aa4a1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pupil_src/shared_modules/uvc_capture/mac_video/makefile
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
INC= -I/opt/local/include -I/usr/local/include

CFLAGS= -shared -fPIC -Wall
CFLAGS= -shared -fPIC -Wall

LIBS = -framework IOKit -framework CoreFoundation -L/usr/local/lib
OBJ = libuvcc.c

make_all: uvcc.so

uvcc.so: $(OBJ)
-gcc $(CFLAGS) -o $@ $^ $(INC) $(LIBS) # $^ = dependencies , $@=Target
-clang $(CFLAGS) -o $@ $^ $(INC) $(LIBS) # $^ = dependencies , $@=Target
#mv *.so c/
# uvcc.o: $(OBJ)
# -gcc $(CFLAGS) -c $^ $(INC) $(LIBS)
# -clang $(CFLAGS) -c $^ $(INC) $(LIBS)

# uvcc.so: uvcc-wrappers.c uvcc.o
# -gcc $(CFLAGS) -o $@ $^ $(INC) $(LIBS) # $^ = dependencies , $@=Target
# -clang $(CFLAGS) -o $@ $^ $(INC) $(LIBS) # $^ = dependencies , $@=Target
# #mv *.so c/

.PHONY: clean
Expand Down

0 comments on commit 22aa4a1

Please sign in to comment.