]> 4ch.mooo.com Git - 16.git/blob - src/lib/doslib/hw/8237/common.mak
added a bunch of things~ and midi stuff~
[16.git] / src / lib / doslib / hw / 8237 / common.mak
1 # this makefile is included from all the dos*.mak files, do not use directly
2 # NTS: HPS is either \ (DOS) or / (Linux)
3 NOW_BUILDING = HW_8237_LIB
4 CFLAGS_THIS = -fr=nul -fo=$(SUBDIR)$(HPS).obj -i=.. -i..$(HPS)..
5
6 C_SOURCE =    8237.c
7 OBJS =        $(SUBDIR)$(HPS)8237.obj
8
9 $(HW_8237_LIB): $(OBJS)
10         wlib -q -b -c $(HW_8237_LIB) -+$(SUBDIR)$(HPS)8237.obj
11
12 # NTS we have to construct the command line into tmp.cmd because for MS-DOS
13 # systems all arguments would exceed the pitiful 128 char command line limit
14 .C.OBJ:
15         %write tmp.cmd $(CFLAGS_THIS) $(CFLAGS) $[@
16         $(CC) @tmp.cmd
17
18 all: lib exe
19         
20 lib: $(HW_8237_LIB) .symbolic
21
22 exe: .symbolic
23
24 clean: .SYMBOLIC
25           del $(SUBDIR)$(HPS)*.obj
26           del $(HW_8237_LIB)
27           del tmp.cmd
28           @echo Cleaning done
29