shithub: drawterm-fdroid

ref: 72775a71e02bb33af432015fe0026e650aa20ae7
dir: /posix-power/Makefile/

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

CFLAGS+= -Wa,-mregnames

OFILES=\
	getcallerpc.$O\
	md5block.$O\
	sha1block.$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