d6ad12a3dc
* Flip \ to / where possible. * Introduce $(DIRSEP) (/ or \) for use inside commands in makefiles where / won't work in DOS. * Override various settings for Linux in owlinux.mak. * Add quotes in exeflat.c to avoid shell expansion of $$$$$. * Let "make all", "make clean", and "make clobber" do the job. git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@1387 6ac86273-5f31-0410-b378-82cca8765d1b
50 lines
827 B
Makefile
50 lines
827 B
Makefile
#
|
|
# makefile for device.lib
|
|
#
|
|
# $Id$
|
|
#
|
|
|
|
|
|
!include "../mkfiles/generic.mak"
|
|
|
|
|
|
# MICROSOFT C
|
|
# -----------
|
|
#MODEL = s
|
|
#CFLAGS = /c /Gs /A$(MODEL)
|
|
#AFLAGS = /Mx /Dmem$(MODEL)=1
|
|
#TERM = ;
|
|
|
|
# BORLAND C
|
|
# -----------
|
|
#MODEL = s
|
|
#CFLAGS = -c -m$(MODEL)
|
|
#AFLAGS = /Mx /Dmem$(MODEL)=1
|
|
#LIBFLAGS = /c
|
|
|
|
OBJS = floppy.obj rdpcclk.obj wrpcclk.obj wratclk.obj
|
|
|
|
LIBOBJS= +floppy.obj +rdpcclk.obj +wrpcclk.obj +wratclk.obj
|
|
|
|
|
|
|
|
# Build the LIBRARY
|
|
# -----------------
|
|
all: production
|
|
|
|
production: ../lib/device.lib
|
|
|
|
../lib/device.lib: device.lib
|
|
$(CP) device.lib ..$(DIRSEP)lib
|
|
|
|
clobber: clean
|
|
-$(RM) device.lib status.me ..$(DIRSEP)lib$(DIRSEP)device.lib
|
|
|
|
clean:
|
|
-$(RM) *.obj *.bak *.crf *.xrf *.map *.lst *.cod *.err
|
|
|
|
device.lib : $(OBJS)
|
|
-$(RM) device.lib
|
|
$(LIBUTIL) $(LIBFLAGS) device $(LIBOBJS) $(LIBTERM)
|
|
|