shithub: drawterm

ref: 7c06cf764b2d7de70ea225ead0e913b5785ddf3b
dir: /posix-power/Makefile/

View raw version
ROOT=..
include ../Make.config
LIB=../libmachdep.a

CFLAGS+= -Wa,-mregnames

OFILES=\
	getcallerpc.$O\
	tas.$O

default: $(LIB)
$(LIB): $(OFILES)
	$(AR) r $(LIB) $(OFILES)
	$(RANLIB) $(LIB)

%.$O: %.c
	$(CC) $(CFLAGS) $*.c

%.$O: %.s
	$(AS) -o $*.$O $*.s

%.s: %.spp
	cpp $*.spp >$*.s