Alistair Delva | beaee83 | 2021-02-24 11:27:23 -0800 | [diff] [blame] | 1 | # Copyright 1997 Marco Nelissen |
| 2 | # This file is part of mtools. |
| 3 | # |
| 4 | # Mtools is free software: you can redistribute it and/or modify |
| 5 | # it under the terms of the GNU General Public License as published by |
| 6 | # the Free Software Foundation, either version 3 of the License, or |
| 7 | # (at your option) any later version. |
| 8 | # |
| 9 | # Mtools is distributed in the hope that it will be useful, |
| 10 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 | # GNU General Public License for more details. |
| 13 | # |
| 14 | # You should have received a copy of the GNU General Public License |
| 15 | # along with Mtools. If not, see <http://www.gnu.org/licenses/>. |
| 16 | # |
| 17 | # Makefile for Mtools |
| 18 | # |
| 19 | # check the Configure file for some examples of device-specific setups |
| 20 | # Berkeley flavors of Unix should include -DBSD in the CFLAGS. Pick |
| 21 | # a lock method... either -DLOCKF, -DFLOCK, or -DFCNTL and put that |
| 22 | # string in the CFLAGS line below. |
| 23 | |
| 24 | # |
| 25 | # rudimentary makefile for building mtools 3.1 on the BeOS |
| 26 | # |
| 27 | |
| 28 | CC=mwcc -O7 |
| 29 | |
| 30 | OBJS=buffer.o codepage.o codepages.o config.o copyfile.o devices.o \ |
| 31 | directory.o expand.o fat.o fat_free.o file.o file_name.o file_read.o \ |
| 32 | filter.o force_io.o hash.o init.o match.o mainloop.o mattrib.o mbadblocks.o \ |
| 33 | mcd.o mcopy.o mdel.o mdir.o mformat.o minfo.o misc.o missFuncs.o \ |
| 34 | mk_direntry.o mlabel.o mmd.o mmount.o mmove.o mpartition.o mzip.o mtools.o \ |
| 35 | parse.o plain_io.o precmd.o privileges.o scsi.o signal.o stream.o \ |
| 36 | streamcache.o subdir.o toupper.o tty.o vfat.o xdf_io.o |
| 37 | |
| 38 | all: mtools mkmanifest |
| 39 | |
| 40 | $(OBJS): config.h |
| 41 | |
| 42 | config.h: config.h.Be |
| 43 | cp config.h.Be config.h |
| 44 | |
| 45 | mtools: $(OBJS) |
| 46 | $(CC) -o mtools $(OBJS) |
| 47 | |
| 48 | mkmanifest: mkmanifest.o |
| 49 | $(CC) -o mkmanifest mkmanifest.c |