# Makefile for Dialog3  -  Invoke using "gmake" or "gmake clean"
# Mahlon R. Smith
# Tools: See information on development tools in: "../Dialog1/Makefile"
# 
# 08-Dec-2020

# Files for Dialog3 Application
HFILES = GlobalDef.hpp NCurses.hpp NCursesKeyDef.hpp NcWindow.hpp NcDialog.hpp \
         gString.hpp
LFILES = NcDialog.a
OFILES = Dialog3.o 

COMPILE = g++ -x c++ -std=gnu++11 -Wall -c

Dialog3: Dialog3.o $(LFILES)
	g++ -o Dialog3 $(OFILES) NcDialog.a -lncursesw

Dialog3.o: Dialog3.cpp $(HFILES) DialogAppShared.hpp 
	$(COMPILE) Dialog3.cpp

#** Remove old object files and the executable for a clean build **
.PHONY: clean
clean:
	rm -f $(OFILES) Dialog3 1>/dev/null 2>/dev/null

