mirror of
https://github.com/UzixLS/picocom.git
synced 2025-07-19 07:21:18 +03:00
Better build support for custom baudrates
For some systems (OSes, versions, architectures) custom-baudrate support is enabled by default. For others, support may work, but must be enabled by defining USE_CUSTOM_BAUD in the Makefile You can also disable custom baudrate support altogether (even for systems where it's enabled by default), by defining NO_CUSTOM_BAUD in the Makefile
This commit is contained in:
17
Makefile
17
Makefile
@ -37,11 +37,14 @@ CPPFLAGS += -DHISTFILE=\"$(HISTFILE)\" \
|
||||
OBJS += linenoise-1.0/linenoise.o
|
||||
linenoise-1.0/linenoise.o : linenoise-1.0/linenoise.c linenoise-1.0/linenoise.h
|
||||
|
||||
## Comment this in to enable custom baudrate support.
|
||||
## Works with: Linux (kernels > 2.6), FreeBSD, OpenBSD, DragonFly,
|
||||
## macOS (Tiger and above)
|
||||
## Comment this in to enable (force) custom baudrate support
|
||||
## even on systems not enabled by default.
|
||||
#CPPFLAGS += -DUSE_CUSTOM_BAUD
|
||||
|
||||
## Comment this in to disable custom baudrate support
|
||||
## on ALL systems (even on these enabled by default).
|
||||
#CPPFLAGS += -DNO_CUSTOM_BAUD
|
||||
|
||||
## Comment this IN to remove help strings (saves ~ 4-6 Kb).
|
||||
#CPPFLAGS += -DNO_HELP
|
||||
|
||||
@ -50,12 +53,12 @@ OBJS += picocom.o term.o fdio.o split.o termios2.o custbaud_bsd.o
|
||||
picocom : $(OBJS)
|
||||
$(LD) $(LDFLAGS) -o $@ $(OBJS) $(LDLIBS)
|
||||
|
||||
picocom.o : picocom.c term.h
|
||||
term.o : term.c term.h
|
||||
picocom.o : picocom.c term.h fdio.h split.h custbaud.h
|
||||
term.o : term.c term.h termios2.h custbaud_bsd.h custbaud.h
|
||||
split.o : split.c split.h
|
||||
fdio.o : fdio.c fdio.h
|
||||
termios2.o : termios2.c termios2.h termbits2.h
|
||||
custbaud_bsd.o : custbaud_bsd.c custbaud_bsd.h
|
||||
termios2.o : termios2.c termios2.h termbits2.h custbaud.h
|
||||
custbaud_bsd.o : custbaud_bsd.c custbaud_bsd.h custbaud.h
|
||||
|
||||
.c.o :
|
||||
$(CC) $(CFLAGS) $(CPPFLAGS) -o $@ -c $<
|
||||
|
Reference in New Issue
Block a user