Implemented tty_read () - tty_t obtain backlog (512bytes) created ondemand; telnetd...
[ZeXOS.git] / libsnd / Makefile
blob1db756497e834ac7189e463200407ab43f98b9e6
1 .SUFFIXES: .asm
3 # defines
4 MAKEFILE=Makefile
5 MAKEDEP=$(MAKEFILE)
6 INCDIR =./
7 LIBC =../libc
8 DLIBC =$(LIBC)/libc.a
9 NASM =nasm -f elf -i$(INCDIR)/
10 CC =gcc -m32 -g -Wall -W -O2 -nostdinc -fno-builtin -I$(INCDIR) -I$(LIBC)/include
12 OBJS =open.o close.o write.o
14 ifneq ($(V),1)
15 Q := @
16 endif
18 # targets
19 all: $(OBJS) libsnd.a
21 clean:
22 $(Q)rm -f libsnd.a $(OBJS)
23 @printf " CLEAN\n";
25 # implicit rules
26 .s.o:
27 @printf " ASM $(subst $(shell pwd)/,,$(@))\n";
28 $(Q)$(NASM) -o$@ $<
30 .c.o:
31 @printf " CC $(subst $(shell pwd)/,,$(@))\n";
32 $(Q)$(CC) -c -o$@ $<
34 # explicit rules
35 libsnd.a: $(OBJS) $(MAKEDEP)
36 @printf " AR $(subst $(shell pwd)/,,$(@))\n";
37 $(Q)ar rcs libsnd.a $(OBJS)