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