# Project:   TTXeditor 


# Toolflags:
.SUFFIXES:     .c .s .o
CCflags      = -c -depend !Depend -I,C: -Otime -throwback -fa 
Linkflags    = -aif -o $@ 
ObjAsmflags  = -depend !Depend -ThrowBack -Stamp -quit -CloseExec 

c_files      = @.o.sourcecode
asm_files    = 
libraries    = DeskLib:o.DeskLib32 C:o.stubs


# Final targets:
@.!RunImage: $(c_files)
             @echo Linking...
             @link $(linkflags) $(c_files) $(asm_files) @.o.output $(libraries)
             # squeeze $(squeezeflags) @.!RunImage
             @echo Compilation finished.


# A macro for building the C code
.c.o:;       @echo Compiling $<...
             @cc $(ccflags) $< -o $@

# A macro for building the assembler code
.s.o:;       @echo Assembling $<...
             @objasm $(objasmflags) -from $< -to $@


# Dynamic dependencies:
