Fixed buffer overflow in mserver; fixed type of checkinfo () 2nd parameter; memory
[ZeXOS.git] / libipc / Makefile
blob3909c2f7ebd4d66e408adb085f979c0dfa6346ef
1 .SUFFIXES: .asm
3 # defines
4 MAKEFILE=Makefile
5 MAKEDEP=$(MAKEFILE)
6 LIBC =../libc
7 INCDIR =./include
8 NASM =nasm -f elf -i$(INCDIR)/
9 CC =gcc -m32 -g -Wall -W -O2 -nostdinc -fno-builtin -I$(INCDIR) -I$(LIBC)/include
11 OBJS =create.o open.o send.o recv.o close.o accept.o
13 ifneq ($(V),1)
14 Q := @
15 endif
17 # targets
18 all: $(OBJS) libipc.a
20 clean:
21 $(Q)rm -f libipc.a $(OBJS)
22 @printf " CLEAN\n";
24 # implicit rules
25 .S.o:
26 @printf " ASM $(subst $(shell pwd)/,,$(@))\n";
27 $(Q)$(NASM) -o$@ $<
29 .c.o:
30 @printf " CC $(subst $(shell pwd)/,,$(@))\n";
31 $(Q)$(CC) -c -o$@ $<
33 # explicit rules
34 libipc.a: $(OBJS) $(MAKEDEP)
35 @printf " AR $(subst $(shell pwd)/,,$(@))\n";
36 $(Q)ar rcs libipc.a $(OBJS)