Fixed buffer overflow in mserver; fixed type of checkinfo () 2nd parameter; memory
[ZeXOS.git] / apps / sh / Makefile
blob4f1cd88e9626be62599e0e50a20b2dc19242f411
1 .SUFFIXES: .asm
3 # defines
4 MAKEFILE=Makefile
5 MAKEDEP=$(MAKEFILE)
6 NASM =nasm -f elf
7 GLIBC =../../libc
8 LSCRIPT =./link.ld
9 LFLAGS =-g -T$(LSCRIPT)
10 INCDIR =$(GLIBC)/include
11 CC =gcc -m32 -g -O2 -Wall -W -c -nostdinc -fno-builtin -fno-stack-protector -I$(INCDIR)
12 #-Wall -W
13 LD =ld -m elf_i386 -s -nostdlib
14 LIBC =$(GLIBC)/libc.a
15 OBJS =start.o main.o
17 # targets
18 all: sh
20 install: sh
21 mkdir mnt
22 mount /dev/fd0 mnt
23 cp -f sh ./mnt/sh
24 umount mnt
25 rmdir mnt
27 iso: sh
28 cp sh ../../iso/
30 clean:
31 rm -f *.o sh sh.img $(OBJS)
33 # implicit rules
34 .s.o:
35 $(NASM) -o$@ $<
37 .c.o:
38 $(CC) -c -o$@ $<
40 # explicit rules
41 sh: $(OBJS) $(LIBC) $(MAKEDEP)
42 $(LD) $(LFLAGS) -o$@ $(OBJS) $(LIBC)