21 lines
621 B
Makefile
21 lines
621 B
Makefile
# Nmake macros for building Windows 32-Bit apps
|
|
|
|
!include <Win32.Mak>
|
|
|
|
all: $(OUTDIR) $(OUTDIR)\simple.exe
|
|
|
|
#----- If OUTDIR does not exist, then create directory
|
|
$(OUTDIR) :
|
|
if not exist "$(OUTDIR)/$(NULL)" mkdir $(OUTDIR)
|
|
|
|
$(OUTDIR)\simple.obj: simple.c
|
|
$(cc) $(cflags) $(cvars) /WX /Fo"$(OUTDIR)\\" /Fd"$(OUTDIR)\\" simple.c
|
|
|
|
$(OUTDIR)\simple.exe: $(OUTDIR)\simple.obj
|
|
$(link) $(conflags) -out:$(OUTDIR)\simple.exe $(OUTDIR)\simple.obj $(conlibs)
|
|
|
|
#--------------------- Clean Rule --------------------------------------------------------
|
|
# Rules for cleaning out those old files
|
|
clean:
|
|
$(CLEANUP)
|