# ---------------------------------------------
# SAS-C Makefile for MUI demonstration programs
# ---------------------------------------------

CFLAGS = ansi nostackcheck stringmerge unsignedchars commentnest\
         errorrexx nomultipleincludes structureequivalence\
         ignore=147 multiplecharacterconstants

all: MUI-Demo Pages WbMan EnvBrowser ShowImg BoopsiDoor Exchange Settings DVIprint Virtual Popup Class1 Class2 Class3 ShowHide Menus Layout Balancing PSI

MUI-Demo: MUI-Demo.c
	@echo "*e[32mCompiling $*.c*e[0m"
	@sc $(CFLAGS) $*.c LINK

Pages: Pages.c
	@echo "*e[32mCompiling $*.c*e[0m"
	@sc $(CFLAGS) $*.c LINK

WbMan: WbMan.c
	@echo "*e[32mCompiling $*.c*e[0m"
	@sc $(CFLAGS) $*.c LINK

EnvBrowser: EnvBrowser.c
	@echo "*e[32mCompiling $*.c*e[0m"
	@sc $(CFLAGS) $*.c LINK

ShowImg: ShowImg.c
	@echo "*e[32mCompiling $*.c*e[0m"
	@sc $(CFLAGS) $*.c LINK

BoopsiDoor: BoopsiDoor.c
	@echo "*e[32mCompiling $*.c*e[0m"
	@sc $(CFLAGS) $*.c LINK

Exchange: Exchange.c
	@echo "*e[32mCompiling $*.c*e[0m"
	@sc $(CFLAGS) $*.c LINK

Settings: Settings.c
	@echo "*e[32mCompiling $*.c*e[0m"
	@sc $(CFLAGS) $*.c LINK

DVIprint: DVIprint.c
	@echo "*e[32mCompiling $*.c*e[0m"
	@sc $(CFLAGS) $*.c LINK

Virtual: Virtual.c
	@echo "*e[32mCompiling $*.c*e[0m"
	@sc $(CFLAGS) $*.c LINK

Popup: Popup.c
	@echo "*e[32mCompiling $*.c*e[0m"
	@sc $(CFLAGS) $*.c LINK

Class1: Class1.c
	@echo "*e[32mCompiling $*.c*e[0m"
	@sc $(CFLAGS) $*.c LINK

Class2: Class2.c
	@echo "*e[32mCompiling $*.c*e[0m"
	@sc $(CFLAGS) $*.c LINK

Class3: Class3.c
	@echo "*e[32mCompiling $*.c*e[0m"
	@sc $(CFLAGS) $*.c LINK

ShowHide: ShowHide.c
	@echo "*e[32mCompiling $*.c*e[0m"
	@sc $(CFLAGS) $*.c LINK

Menus: Menus.c
	@echo "*e[32mCompiling $*.c*e[0m"
	@sc $(CFLAGS) $*.c LINK

Layout: Layout.c
	@echo "*e[32mCompiling $*.c*e[0m"
	@sc $(CFLAGS) $*.c LINK

Balancing: Balancing.c
	@echo "*e[32mCompiling $*.c*e[0m"
	@sc $(CFLAGS) $*.c LINK

brush2c: brush2c.c
	@echo "*e[32mCompiling $*.c*e[0m"
	@sc $(CFLAGS) $*.c LINK

psi_sizes.h: psi_sizes.brush brush2c
	brush2c $*.brush >$*.h

psi_colors.h: psi_colors.brush brush2c
	brush2c $*.brush >$*.h

psi_freqs.h: psi_freqs.brush brush2c
	brush2c $*.brush >$*.h

psi: psi.c psi.h psi_locale.h psi_sizes.h psi_colors.h psi_freqs.h
	@echo "*e[32mCompiling $*.c*e[0m"
	@sc $(CFLAGS) $*.c LINK
