dos port underway
[retroray] / libs / treestor / Makefile
1 !ifdef __UNIX__
2 obj = src/treestor.obj src/text.obj src/dynarr.obj
3 alib = ../../treestor.lib
4 !else
5 obj = src\treestor.obj src\text.obj src\dynarr.obj
6 alib = ..\..\treestor.lib
7 !endif
8
9 CC = wcc386
10 CFLAGS = -d1 -5 -fp5 -otexan -zq -Iinclude
11
12 $(alib): $(obj)
13         %write objects.lbc $(obj)
14         wlib -b -n $@ @objects
15
16 .c: src
17
18 .c.obj: .autodepend
19         %write cflags.occ $(CFLAGS)
20         $(CC) -fo=$@ @cflags.occ $[*
21
22 !ifdef __UNIX__
23 clean: .symbolic
24         rm -f $(obj)
25         rm -f $(alib)
26 !else
27 clean: .symbolic
28         del src\*.obj
29         del objects.lbc
30         del cflags.occ
31         del $(alib)
32 !endif