Skip to content

Commit e839710

Browse files
committed
Fixed to compile on Mac OS X 10.8 with XCode 4.6
Upodated to compile on Mac OS X 10.8 with XCode 4.6 with command line tools downloaded. The command line tools couldn't tolerate compiling the final .c file and linking with the other files. I had to modify the Makefile to compile all .c files then go back and link the .o files together into the executable.
1 parent 82345cb commit e839710

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Makefile

+2-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ lpcterm.o: lpcterm.c $(GLOBAL_DEP)
2727
$(CC) $(CDEBUG) $(CFLAGS) -c -o lpcterm.o lpcterm.c
2828

2929
lpc21isp: lpc21isp.c adprog.o lpcprog.o lpcterm.o $(GLOBAL_DEP)
30-
$(CC) $(CDEBUG) $(CFLAGS) -o lpc21isp lpc21isp.c adprog.o lpcprog.o lpcterm.o
30+
$(CC) $(CDEBUG) $(CFLAGS) -c -o lpc21isp.o lpc21isp.c
31+
$(CC) -o lpc21isp lpc21isp.o adprog.o lpcprog.o lpcterm.o
3132

3233
clean:
3334
$(RM) adprog.o lpcprog.o lpcterm.o lpc21isp

0 commit comments

Comments
 (0)