| 1 | # Copyright (c) 2016-2022 Paul Mattes. |
| 2 | # All rights reserved. |
| 3 | # |
| 4 | # Redistribution and use in source and binary forms, with or without |
| 5 | # modification, are permitted provided that the following conditions |
| 6 | # are met: |
| 7 | # * Redistributions of source code must retain the above copyright |
| 8 | # notice, this list of conditions and the following disclaimer. |
| 9 | # * Redistributions in binary form must reproduce the above copyright |
| 10 | # notice, this list of conditions and the following disclaimer in the |
| 11 | # documentation and/or other materials provided with the distribution. |
| 12 | # * Neither the name of Paul Mattes nor his contributors may be used |
| 13 | # to endorse or promote products derived from this software without |
| 14 | # specific prior written permission. |
| 15 | # |
| 16 | # THIS SOFTWARE IS PROVIDED BY PAUL MATTES "AS IS" AND ANY EXPRESS OR |
| 17 | # IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES |
| 18 | # OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN |
| 19 | # NO EVENT SHALL PAUL MATTES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
| 20 | # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED |
| 21 | # TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR |
| 22 | # PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF |
| 23 | # LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING |
| 24 | # NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS |
| 25 | # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 26 | |
| 27 | # Makefile for libw3270 |
| 28 | ifdef WIN64 |
| 29 | objdir = ../../obj/win64/lib3270i |
| 30 | else |
| 31 | objdir = ../../obj/win32/lib3270i |
| 32 | endif |
| 33 | top = ../../.. |
| 34 | this = $(top)/lib/w3270i |
| 35 | |
| 36 | export VPATH = $(this):$(top)/Common/Win32:$(top)/Common |
| 37 | export TOP = $(top) |
| 38 | export THIS = $(this) |
| 39 | |
| 40 | MAKEINC = -I$(top)/Common -I$(top)/Common/Win32 -I$(this) |
| 41 | |
| 42 | all: $(objdir) |
| 43 | cd $(objdir) && $(MAKE) $(MAKEINC) -f $(this)/Makefile.obj $@ |
| 44 | clean: $(objdir) |
| 45 | cd $(objdir) && $(MAKE) $(MAKEINC) -f $(this)/Makefile.obj $@ |
| 46 | clobber: $(objdir) |
| 47 | cd $(objdir) && $(MAKE) $(MAKEINC) -f $(this)/Makefile.obj $@ |
| 48 | |
| 49 | $(objdir): |
| 50 | mkdir -p $(objdir) |