2003-04-15 20:47:29 +00:00
|
|
|
#
|
|
|
|
# Makefile for the serial driver API
|
|
|
|
#
|
|
|
|
|
|
|
|
.SUFFIXES: .o .s .c
|
|
|
|
|
2004-10-26 19:28:26 +00:00
|
|
|
#--------------------------------------------------------------------------
|
|
|
|
# Programs and flags
|
|
|
|
|
|
|
|
SYS = none
|
|
|
|
|
|
|
|
AS = ../../src/ca65/ca65
|
|
|
|
CC = ../../src/cc65/cc65
|
|
|
|
LD = ../../src/ld65/ld65
|
|
|
|
|
|
|
|
AFLAGS = -t $(SYS) -I../../asminc
|
|
|
|
CFLAGS = -Osir -g -T -t $(SYS) --forget-inc-paths -I . -I ../../include
|
|
|
|
|
2003-04-15 20:47:29 +00:00
|
|
|
#--------------------------------------------------------------------------
|
|
|
|
# Rules
|
|
|
|
|
|
|
|
%.o: %.c
|
|
|
|
@$(CC) $(CFLAGS) $<
|
|
|
|
@$(AS) -g -o $@ $(AFLAGS) $(*).s
|
|
|
|
|
|
|
|
%.o: %.s
|
|
|
|
@$(AS) -g -o $@ $(AFLAGS) $<
|
|
|
|
|
|
|
|
#--------------------------------------------------------------------------
|
|
|
|
# Object files
|
|
|
|
|
2006-06-05 16:59:29 +00:00
|
|
|
C_OBJS =
|
2003-04-15 20:47:29 +00:00
|
|
|
|
|
|
|
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 \
|
2005-09-08 20:58:33 +00:00
|
|
|
ser_ioctl.o \
|
2006-06-05 16:59:29 +00:00
|
|
|
ser_load.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
|
|
|
|
|