New developer version 0.6.8; added select () function; added demonstrating example...
[ZeXOS.git] / apps / play / Makefile
bloba926d14d656b6cecf4d7325042fa6d2fe0f0334c
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 LIBSNDDIR =../../libsnd
12 CC =gcc -m32 -g -O2 -Wall -W -c -nostdinc -fno-builtin -fno-stack-protector -I$(INCDIR) -I$(LIBSNDDIR)
13 #-Wall -W
14 LD =ld -m elf_i386 -s -nostdlib
15 LIBC =$(GLIBC)/libc.a
16 LIBSND =$(LIBSNDDIR)/libsnd.a
17 OBJS =start.o main.o
19 # targets
20 all: play
22 install: play
23 mkdir mnt
24 mount /dev/fd0 mnt
25 cp -f play ./mnt/play
26 umount mnt
27 rmdir mnt
29 iso: play
30 cp play ../../iso/
32 clean:
33 rm -f *.o play play.img $(OBJS)
34 # implicit rules
35 .s.o:
36 $(NASM) -o$@ $<
38 .c.o:
39 $(CC) -c -o$@ $<
41 # explicit rules
42 play: $(OBJS) $(LIBC) $(LIBSND) $(MAKEDEP)
43 $(LD) $(LFLAGS) -o$@ $(OBJS) $(LIBC) $(LIBSND)