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-04-18 16:29:51 +00:00
|
|
|
ser_get.o \
|
|
|
|
ser_params.o \
|
|
|
|
ser_pause.o \
|
|
|
|
ser_put.o \
|
|
|
|
ser_status.o \
|
|
|
|
ser_unload.o \
|
|
|
|
ser_unpause.o
|
2003-04-15 20:47:29 +00:00
|
|
|
|
|
|
|
|
|
|
|
#--------------------------------------------------------------------------
|
|
|
|
# Targets
|
|
|
|
|
|
|
|
.PHONY: all clean zap
|
|
|
|
|
|
|
|
all: $(C_OBJS) $(S_OBJS)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
@rm -f *~
|
|
|
|
@rm -f $(C_OBJS:.o=.s)
|
|
|
|
@rm -f $(C_OBJS)
|
|
|
|
@rm -f $(S_OBJS)
|
|
|
|
|
|
|
|
zap: clean
|
|
|
|
|