Further modifications for OS/X.

Don't rely on install -D, and define B460800 before using it if
compiling on OS/X.
This commit is contained in:
Daniel Beer 2010-05-26 11:17:45 +12:00
parent 5ed4473dda
commit 7703c34664
3 changed files with 13 additions and 3 deletions

View File

@ -36,8 +36,10 @@ clean:
/bin/rm -f mspdebug
install: mspdebug mspdebug.man
$(INSTALL) -D -m 0755 -s mspdebug $(PREFIX)/bin/mspdebug
$(INSTALL) -D -m 0644 mspdebug.man $(PREFIX)/share/man/man1/mspdebug.1
mkdir -p $(PREFIX)/bin
mkdir -p $(PREFIX)/share/man/man1
$(INSTALL) -m 0755 -s mspdebug $(PREFIX)/bin/mspdebug
$(INSTALL) -m 0644 mspdebug.man $(PREFIX)/share/man/man1/mspdebug.1
.SUFFIXES: .c .o

6
bsl.c
View File

@ -30,11 +30,15 @@
#include "util.h"
#include "fet_error.h"
#ifdef __APPLE__
#define B460800 460800
#endif
struct bsl_device {
struct device base;
int serial_fd;
uint8_t reply_buf[256];
uint8_t reply_buf[256];
int reply_len;
};

4
uif.c
View File

@ -28,6 +28,10 @@
#include "uif.h"
#include "util.h"
#ifdef __APPLE__
#define B460800 460800
#endif
struct uif_transport {
struct transport base;