Files
fstester/setter/projects/make/unix/Makefile

71 lines
2.5 KiB
Makefile
Raw Normal View History

2021-04-11 00:03:51 +01:00
# /****************************************************************************
# Aaru Data Preservation Suite
# -----------------------------------------------------------------------------
#
# Author(s) : Natalia Portillo
#
# --[ License ] ---------------------------------------------------------------
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# -----------------------------------------------------------------------------
# Copyright (C) 2011-2021 Natalia Portillo
# *****************************************************************************/
# Directory with main and log source files
MAINDIR = ../../../src
# Directory with main platform source files
SRCDIR = $(MAINDIR)/unix
# Directory with subplatform source files
PLATDIR =
# Object files
OBJS = $(MAINDIR)/log.o $(MAINDIR)/main.o $(SRCDIR)/attr.o $(SRCDIR)/dirdepth.o \
$(SRCDIR)/files.o $(SRCDIR)/links.o $(SRCDIR)/perms.o $(SRCDIR)/rsrcfork.o \
$(SRCDIR)/time.o $(SRCDIR)/volume.o $(SRCDIR)/xattr.o $(SRCDIR)/deleted.o \
$(SRCDIR)/filename.o $(SRCDIR)/frag.o $(SRCDIR)/os.o $(SRCDIR)/sparse.o
# Source files
SOURCE = $(MAINDIR)/log.c $(MAINDIR)/main.c $(SRCDIR)/attr.c $(SRCDIR)/dirdepth.c \
$(SRCDIR)/files.c $(SRCDIR)/links.c $(SRCDIR)/perms.c $(SRCDIR)/rsrcfork.c \
$(SRCDIR)/time.c $(SRCDIR)/volume.c $(SRCDIR)/xattr.c $(SRCDIR)/deleted.c \
$(SRCDIR)/filename.c $(SRCDIR)/frag.c $(SRCDIR)/os.c $(SRCDIR)/sparse.c
# Header files
HEADER = $(MAINDIR)/log.h $(MAINDIR)/main.h $(SRCDIR)/perms.h $(SRCDIR)/time.h \
$(SRCDIR)/volume.h
# Outfile
OUT = fssetter
# Linker flags
LFLAGS =
# Compiler flags. This needs the definitions on how to find statfs.h as there is no autodetection
# BSD 2.11 defines statfs to be in sys/mount.h
CFLAGS = -DHAVE_SYS_MOUNT_H
all: fssetter
fssetter: $(OBJS)
$(CC) -o $@ $^ $(LFLAGS)
%.o: %.c $(HEADER)
$(CC) $(CFLAGS) -c -o $@ $<
# clean house
clean:
rm -f $(OBJS) $(OUT)