7 NASM
=nasm
-f elf
-i
$(INCDIR
)/
8 CC
=gcc
-m32
-g
-Wall
-W
-O2
-nostdinc
-fno-builtin
-I
$(INCDIR
)
10 OBJS
=create.o destroy.o
20 $(Q
)rm -f libpthread.a
$(OBJS
)
25 @printf
" ASM $(subst $(shell pwd)/,,$(@))\n";
29 @printf
" CC $(subst $(shell pwd)/,,$(@))\n";
33 create.o
: create.c
$(MAKEDEP
)
34 destroy.o
: destroy.c
$(MAKEDEP
)
37 libpthread.a
: $(OBJS
) $(MAKEDEP
)
38 @printf
" AR $(subst $(shell pwd)/,,$(@))\n";
39 $(Q
)ar rcs libpthread.a
$(OBJS
)