Rev 3 | Go to most recent revision | Details | 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 |
||
| 12 | SERIAL_OBJ = $(OBJPATH)/libSERIAL |
||
| 13 | SERIAL_OBJECTS = $(SERIAL_OBJ)/serial.o |
||
| 14 | |||
| 15 | # build these sources |
||
| 16 | $(SERIAL_OBJ)/%.o: $(SERIAL_SRC)/%.c $(DEPENDS) |
||
| 17 | $(CC) $(CFLAGS) $< -o $@ |
||
| 18 | |||
| 19 | # C_INCLUDES and C_OBJECTS used by simple makefiles, |
||
| 20 | # other macros are for more complex makefiles |
||
| 21 | C_INCLUDES += -I$(SERIAL_INC) |
||
| 22 | C_OBJECTS += $(SERIAL_OBJECTS) |
||
| 23 | |||
| 24 | C_SOURCES += $(LIBSERIAL)/src/serial.c |
||
| 25 | |||
| 26 |