Rev 3 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 2 | mjames | 1 | # make fragment for SERIAL devices data library |
| 2 | # input argument LIBSERIAL |
||
| 3 | # outputs OBJ_DIR to create |
||
| 4 | |||
| 5 | # Other macros used by bigger build system |
||
| 6 | |||
| 7 | |||
| 8 | |||
| 9 | SERIAL_PATH = $(LIBSERIAL)/src |
||
| 10 | SERIAL_SRC = $(SERIAL_PATH) |
||
| 11 | SERIAL_INC = $(LIBSERIAL)/inc |
||
| 3 | mjames | 12 | SERIAL_OBJ = $(OBJPATH)/libSerial |
| 2 | mjames | 13 | SERIAL_OBJECTS = $(SERIAL_OBJ)/serial.o |
| 10 | mjames | 14 | SERIAL_OBJECTS = $(SERIAL_OBJ)/serialUtils.o |
| 2 | mjames | 15 | |
| 16 | # build these sources |
||
| 17 | $(SERIAL_OBJ)/%.o: $(SERIAL_SRC)/%.c $(DEPENDS) |
||
| 18 | $(CC) $(CFLAGS) $< -o $@ |
||
| 19 | |||
| 20 | # C_INCLUDES and C_OBJECTS used by simple makefiles, |
||
| 21 | # other macros are for more complex makefiles |
||
| 3 | mjames | 22 | |
| 2 | mjames | 23 | C_INCLUDES += -I$(SERIAL_INC) |
| 3 | mjames | 24 | |
| 25 | |||
| 2 | mjames | 26 | C_OBJECTS += $(SERIAL_OBJECTS) |
| 27 | |||
| 28 | C_SOURCES += $(LIBSERIAL)/src/serial.c |
||
| 10 | mjames | 29 | C_SOURCES += $(LIBSERIAL)/src/serialUtils.c |
| 2 | mjames | 30 |