Skip to content
Snippets Groups Projects
Commit be2b3b3b authored by rswindell's avatar rswindell
Browse files

Added clean rule (can't use xpdev/rules.mk as it is).

parent 2ae8c75e
Branches
Tags
No related merge requests found
......@@ -23,7 +23,7 @@ UIFC = ..\..\uifc
LIB = ..\..\..\lib
INCLUDE = ..\..\..\include
CFLAGS = -DSCFG -M -I..;$(UIFC);$(XPDEV)
DELETE = echo y | del
DELETE = -@echo y | del
.path.c = .;..;$(UIFC);$(XPDEV)
.path.cpp = $(UIFC)
......@@ -44,7 +44,7 @@ EXEODIR = $(EXEODIR).debug
!else
EXEODIR = $(EXEODIR).release
!endif
LIBODIR = $(EXEODIR)
LIBODIR = $(EXEODIR)
# Cross platform/compiler definitions
!include targets.mk # defines all targets
......@@ -69,7 +69,7 @@ OBJS = $(OBJS) $(EXEODIR)\uifcfltk.$(OFILE) $(LIB)/fltk/win32/fltk.lib
.cpp.$(OFILE):
@$(CC) $(CFLAGS) -n$(EXEODIR) -c $<
# Create output directories if they don't exist
# Create output directory if it doesn't exist
$(EXEODIR):
@if not exist $(EXEODIR) mkdir $(EXEODIR)
......@@ -83,3 +83,7 @@ $(SCFGHELP): $(OBJS) $(MAKEHELP)
$(SCFG): $(OBJS)
@echo Linking $@
@$(CC) $(CFLAGS) -e$@ $**
clean:
@echo Deleting $(EXEODIR)
$(QUIET)$(DELETE) $(EXEODIR)\*
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment