forked from Tronix286/DOSMID
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdos-qcl.mk
46 lines (37 loc) · 1.58 KB
/
dos-qcl.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#
# DOSMid Makefile for Microsoft NMake and Microsoft QuickC
# Copyright (C) 2014-2023 Mateusz Viste
# Copyright 2015-2024 Rivoreo
#
# you can control the availability of some features with the FEATURES string:
# -DSBAWE enables SoundBlaster AWE drivers (+36K)
# -DOPL enables MIDI emulation over OPL output (+9K)
# -DOPLLPT enables OPL2LPT and OPL3LPT output, requires OPL
# -DCMS enables Creative Music System / Game Blaster output (+5K)
# -DCMSLPT enables CMSLPT output, requires CMS
# -DDBGFILE enables debug output to file (+10K)
FEATURES = -DSBAWE -DOPL -DOPLLPT -DCMS -DCMSLPT
FEATURESLT = -DOPL -DOPLLPT -DCMS -DCMSLPT
# Configure the default output device for use when no device option specified
# and no GUS, MPU and AWE configured via environment
#DEFAULT_DEVICE = -DDOSMID_DEFAULT_DEVICE_TYPE=DEV_OPL -DDOSMID_DEFAULT_DEVICE_PORT=0x388
# memory segmentation mode (s = small ; c = compact ; m = medium ; l = large)
# code | data
# small 64K | 64K
# compact 64K | 64K+
# medium 64K+ | 64K
# large 64K+ | 64K+
#MODE = s
CC = qcl
CFLAGS = -Os -Gs -AS -W1 -I compat
SOURCES = cms.c dosmid.c fio.c gus.c lpt.c mem.c midi.c mpu401.c mus.c opl.c outdev.c rs232.c sbdsp.c syx.c timer.c ui.c xms.c
all: dosmid.exe dosmidlt.exe
dosmid.exe: $(SOURCES)
$(CC) $(CFLAGS) $(FEATURES) $(DEFAULT_DEVICE) -Fe$@ -Fmdosmid.map *.c awe32\rawe32s.lib
dosmidlt.exe: $(SOURCES)
$(CC) $(CFLAGS) $(FEATURESLT) $(DEFAULT_DEVICE) -Fe$@ -Fmdosmidlt.map *.c
clean:
del *.obj
del *.map
del dosmid.exe
del dosmidlt.exe