2003-04-15 20:47:29 +00:00
|
|
|
#
|
|
|
|
# Makefile for the serial driver API
|
|
|
|
#
|
|
|
|
|
|
|
|
.SUFFIXES: .o .s .c
|
|
|
|
|
|
|
|
#--------------------------------------------------------------------------
|
|
|
|
# Rules
|
|
|
|
|
|
|
|
%.o: %.c
|
|
|
|
@$(CC) $(CFLAGS) $<
|
|
|
|
@$(AS) -g -o $@ $(AFLAGS) $(*).s
|
|
|
|
|
|
|
|
%.o: %.s
|
|
|
|
@$(AS) -g -o $@ $(AFLAGS) $<
|
|
|
|
|
|
|
|
#--------------------------------------------------------------------------
|
|
|
|
# Object files
|
|
|
|
|
|
|
|
C_OBJS = ser_load.o
|
|
|
|
|
|
|
|
S_OBJS = ser-kernel.o \
|
2003-08-22 11:23:48 +00:00
|
|
|
ser_close.o \
|
2003-04-18 16:29:51 +00:00
|
|
|
ser_get.o \
|
2003-08-22 11:23:48 +00:00
|
|
|
ser_open.o \
|
2003-04-18 16:29:51 +00:00
|
|
|
ser_put.o \
|
|
|
|
ser_status.o \
|
2003-08-22 11:23:48 +00:00
|
|
|
ser_unload.o
|
2003-04-15 20:47:29 +00:00
|
|
|
|
|
|
|
|
|
|
|
#--------------------------------------------------------------------------
|
|
|
|
# Targets
|
|
|
|
|
|
|
|
.PHONY: all clean zap
|
|
|
|
|
|
|
|
all: $(C_OBJS) $(S_OBJS)
|
|
|
|
|
|
|
|
clean:
|
2003-08-20 11:59:27 +00:00
|
|
|
@$(RM) *~ $(C_OBJS:.o=.s) $(C_OBJS) $(S_OBJS)
|
2003-04-15 20:47:29 +00:00
|
|
|
|
|
|
|
zap: clean
|
|
|
|
|