# Uncomment this to make the german version:
German = -d DEUTSCH -d DEUTSCH1

.c.o:
   lc -v -ms -csfq $*

.a.o:
   oma -o $(@) -s $*.a -m -i INCLUDE: $(German)

All: InstallPassword passwd RemovePassword
   @echo "Everything is up to date"

InstallPassword.o: InstallPassword.c
RemovePassword.o:  RemovePassword.c
passwd.o:          passwd.c
DriveInit.o:       DriveInit.c

DriveInitCode.o:   DriveInitCode.a DriveInit
PasswordCode.o:    PasswordCode.a

RemovePassword: RemovePassword.o
   blink FROM LIB:MyStartup.o RemovePassword.o TO RemovePassword LIB LIB:MyLib.lib SC SD NOICONS

passwd: passwd.o
   blink FROM LIB:MyStartup.o passwd.o TO passwd LIB LIB:MyLib.lib SC SD NOICONS

InstallPassword: InstallPassword.o DriveInitCode.o
   blink FROM LIB:MyStartup.o DriveInitCode.o InstallPassword.o TO InstallPassword LIB LIB:MyLib.lib SC SD NOICONS

DriveInit: DriveInit.o PasswordCode.o
   blink FROM DriveInit.o PasswordCode.o TO DriveInit SC SD NOICONS
