You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

47 lines
1.0 KiB

# Makefile for OS/2 using Watcom compiler.
#
# wmake -f Makefile.os2
CC=wcc386
CPPFLAGS=-DHAVE_SIGNAL_H -DHAVE_SYS_TIME_H
CPPFLAGS+= -DSOUND_OS2DART
!ifndef __UNIX__
CPPFLAGS+= -DVERSION="4.2.0"
!else
CPPFLAGS+= -DVERSION=\"4.2.0\"
!endif
INCLUDES=-I"../os2" -I"../src"
#LIBXMP=libxmp_static.lib
LIBXMP=libxmp.lib
LIBS=$(LIBXMP)
# for sound_dart:
LIBS+= mmpm2.lib
CFLAGS = -bt=os2 -bm -fp5 -fpi87 -mf -oeatxh -w4 -zp8 -ei -q
# -5s : Pentium stack calling conventions.
# -5r : Pentium register calling conventions.
CFLAGS+= -5s
.SUFFIXES:
.SUFFIXES: .obj .c
AOUT=xmp.exe
COMPILE=$(CC) $(CFLAGS) $(CPPFLAGS) $(INCLUDES)
OBJ = commands.obj getopt_long.obj info.obj main.obj options.obj read_config.obj sound.obj sound_aiff.obj sound_file.obj sound_null.obj sound_wav.obj sound_dart.obj terminal.obj usleep.obj
all: $(AOUT)
$(AOUT): $(OBJ)
wlink N $(AOUT) SYS OS2V2 OP QUIET LIBR {$(LIBS)} F {$(OBJ)}
.c: ../src
.c.obj:
$(COMPILE) -fo=$^@ $<
distclean: clean .symbolic
rm -f $(AOUT) *.err
clean: .symbolic
rm -f *.obj