
# vim: syntax=sh

# Copyright 2025 Matthew Rickard
# This file is part of dep

# dep 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 <https://www.gnu.org/licenses/>.

include /etc/depsyntax

WARNINGS=-Wno-unused-variable -Wno-unused-parameter -Wno-misleading-indentation -Wno-parentheses

bison -t -v -o depparse.cpp --defines=depparse.h depparse.y
flex -o deplex.cpp deplex.l

g++ -Os -Wall -Wextra -Werror $WARNINGS -c -o %.o %.cpp

g++ -Os depmain.o DepTree.o CmdLine.o AbstractProcess.o Decimal.o \
  File.o Integer.o LinuxMacroNames.o ParseTree.o Utils.o clockwork.o \
  stringify.o logMsg.o matches.o deplex.o quote.o interproc.o dep.o \
  depparse.o cross_platform.o argv.cpp -lgmpxx -lgmp -o dep

