Skip to content

Commit

Permalink
Merge pull request #2 from lostman-github/fix-makefile
Browse files Browse the repository at this point in the history
fix Makefile for building on Mac
  • Loading branch information
digistump committed May 20, 2014
2 parents b035f50 + f7557a4 commit d4eb080
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion C++/monitor/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ifeq ($(shell uname), Linux)
OSFLAG = -D LINUX
else ifeq ($(shell uname), Darwin)
USBFLAGS = `libusb-config --cflags`
USBLIBS = libusb-0.1.4.dylib
USBLIBS = `libusb-config --libs` -lcurses
EXE_SUFFIX =
OSFLAG = -D MAC_OS -D_DARWIN_USE_64_BIT_INODE=1
else
Expand Down
4 changes: 2 additions & 2 deletions C++/receive/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ifeq ($(shell uname), Linux)
OSFLAG = -D LINUX
else ifeq ($(shell uname), Darwin)
USBFLAGS = `libusb-config --cflags`
USBLIBS = libusb-0.1.4.dylib
USBLIBS = `libusb-config --libs`
EXE_SUFFIX =
OSFLAG = -D MAC_OS -D_DARWIN_USE_64_BIT_INODE=1
else
Expand All @@ -29,4 +29,4 @@ $(PROGRAM): $(SOURCE)
$(CC) $(CFLAGS) -o $(PROGRAM) $(SOURCE) $(USBLIBS)

clean:
rm -f $(PROGRAM) *.o
rm -f $(PROGRAM) *.o
4 changes: 2 additions & 2 deletions C++/send/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ifeq ($(shell uname), Linux)
OSFLAG = -D LINUX
else ifeq ($(shell uname), Darwin)
USBFLAGS = `libusb-config --cflags`
USBLIBS = libusb-0.1.4.dylib
USBLIBS = `libusb-config --libs`
EXE_SUFFIX =
OSFLAG = -D MAC_OS -D_DARWIN_USE_64_BIT_INODE=1
else
Expand All @@ -29,4 +29,4 @@ $(PROGRAM): $(SOURCE)
$(CC) $(CFLAGS) -o $(PROGRAM) $(SOURCE) $(USBLIBS)

clean:
rm -f $(PROGRAM) *.o
rm -f $(PROGRAM) *.o

0 comments on commit d4eb080

Please sign in to comment.