home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
lxapi32.zip
/
I2C
/
makefile
< prev
Wrap
Makefile
|
2002-04-26
|
2KB
|
72 lines
# $Id: makefile,v 1.2 2002/04/26 23:08:58 smilcke Exp $
#===================================================================
# Makefile for LXAPI32 driver I2C
#===================================================================
DEVTYPE=I2C
TARGET = i2c
#EVERYTHING_AS_CPP=1
32BIT=1
!Message ************************
!Message Building $(TARGET)
!Message ************************
!include ..\makes\paths.mak
!ifndef DRV_BASE
!error No DRV paths defined.
!endif
CINCLUDES = $(%WATCOM)\H;..\include;
AINCLUDES = $(%DDK)\H
CDEFINES = -D__KERNEL__ -DMODULE -dTARGET_OS2
#===================================================================
#
# List of source files
#
#===================================================================
OBJ1 = i2calgob.obj
OBJ2 = i2cdev.obj
OBJ3 =
OBJ4 =
OBJ5 =
OBJ6 =
OBJ7 =
OBJ8 =
OBJ9 = i2ccore.obj
OBJLAST =
OBJS = $(OBJ0) $(OBJ1) $(OBJ2) $(OBJ3) $(OBJ4) $(OBJ5) $(OBJ6) $(OBJ7) $(OBJ8) $(OBJ9) $(OBJLAST)
!include $(DRV_MAKES)\envchk.mak
!include $(DRV_MAKES)\common.mak
!include $(LX_MAINMAKE)
LNKFILE = $(DRV_OBJ)\$(TARGET).lrf
#===================================================================
#
# Specific dependencies
#
#===================================================================
all: $(DRV_LIB)\$(TARGET).lib
$(LNKFILE): makefile
@%create $(LNKFILE)
@for %f in ($(OBJS)) do @%append $(LNKFILE) -+$(DRV_OBJ)\%f
$(DRV_LIB)\$(TARGET).lib: $(LNKFILE) $(OBJS)
@echo ------------------- $^&.lib
$(LIB) $(DRV_LIB)\$(TARGET).lib @$(LNKFILE)
clean: .SYMBOLIC
@if exist $(DRV_OBJ)\*.obj del $(DRV_OBJ)\*.obj
@if exist $(DRV_OBJ)\*.lrf del $(DRV_OBJ)\*.lrf
@if exist $(DRV_OBJ)\*.lst del $(DRV_OBJ)\*.lst
@if exist $(DRV_SRC)\*.err del $(DRV_SRC)\*.err
@if exist $(DRV_LIB)\$(TARGET).lib del $(DRV_LIB)\$(TARGET).lib