| 123456789101112131415161718192021222324252627 |
- 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)
- @echo -e "\tAR\t\t\t$(targ)"
- %.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)
|