Last change
on this file since 457 was
231,
checked in by max@…, 7 years ago
|
Add a serial port multiplexer, usable to communicate with the
ALMOS-MKH kernel over a serial port.
|
File size:
297 bytes
|
Rev | Line | |
---|
[231] | 1 | CC=gcc |
---|
| 2 | CFLAGS=-W -Wall -g |
---|
| 3 | LDFLAGS= |
---|
| 4 | EXEC=alcons |
---|
| 5 | FIFO_RX=/tmp/fifo_rx |
---|
| 6 | FIFO_TX=/tmp/fifo_tx |
---|
| 7 | TEST=test_tx.txt test_rx.txt |
---|
| 8 | |
---|
| 9 | all: $(EXEC) |
---|
| 10 | |
---|
| 11 | alcons: alcons.o threads.o |
---|
| 12 | $(CC) -o $@ $^ $(LDFLAGS) -lrt -pthread |
---|
| 13 | |
---|
| 14 | %.o: %.c |
---|
| 15 | $(CC) -o $@ -c $< $(CFLAGS) |
---|
| 16 | |
---|
| 17 | clean: |
---|
| 18 | rm -f *.o alcons $(FIFO_RX) $(FIFO_TX) $(TEST) |
---|
| 19 | |
---|
Note: See
TracBrowser
for help on using the repository browser.