| 1234567891011121314151617181920212223242526 |
- arch = interp x86_64
- CFLAGS = -Wall -Werror -I../include -g
- templ = arch_templ.o cstyles.o
- targ = libarch.a
- all : $(templ)
- @# this writes into arch.a
- @for n in $(arch); do \
- $(MAKE) -C $$n; \
- done;
- $(AR) cr $(targ) $(templ)
- %.o : %.c
- @$(CC) $(CFLAGS) -c $*.c
- @echo -e "\tCC\t\t\t$*.c"
- .PHONY clean :
- @for n in $(arch); do \
- $(MAKE) -C $$n clean; \
- done;
- $(RM) libarch.a $(templ)
|