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
No related branches found
No related tags found
No related merge requests found
...@@ -23,7 +23,7 @@ UIFC = ..\..\uifc ...@@ -23,7 +23,7 @@ UIFC = ..\..\uifc
LIB = ..\..\..\lib LIB = ..\..\..\lib
INCLUDE = ..\..\..\include INCLUDE = ..\..\..\include
CFLAGS = -DSCFG -M -I..;$(UIFC);$(XPDEV) CFLAGS = -DSCFG -M -I..;$(UIFC);$(XPDEV)
DELETE = echo y | del DELETE = -@echo y | del
.path.c = .;..;$(UIFC);$(XPDEV) .path.c = .;..;$(UIFC);$(XPDEV)
.path.cpp = $(UIFC) .path.cpp = $(UIFC)
...@@ -44,7 +44,7 @@ EXEODIR = $(EXEODIR).debug ...@@ -44,7 +44,7 @@ EXEODIR = $(EXEODIR).debug
!else !else
EXEODIR = $(EXEODIR).release EXEODIR = $(EXEODIR).release
!endif !endif
LIBODIR = $(EXEODIR) LIBODIR = $(EXEODIR)
# Cross platform/compiler definitions # Cross platform/compiler definitions
!include targets.mk # defines all targets !include targets.mk # defines all targets
...@@ -69,7 +69,7 @@ OBJS = $(OBJS) $(EXEODIR)\uifcfltk.$(OFILE) $(LIB)/fltk/win32/fltk.lib ...@@ -69,7 +69,7 @@ OBJS = $(OBJS) $(EXEODIR)\uifcfltk.$(OFILE) $(LIB)/fltk/win32/fltk.lib
.cpp.$(OFILE): .cpp.$(OFILE):
@$(CC) $(CFLAGS) -n$(EXEODIR) -c $< @$(CC) $(CFLAGS) -n$(EXEODIR) -c $<
# Create output directories if they don't exist # Create output directory if it doesn't exist
$(EXEODIR): $(EXEODIR):
@if not exist $(EXEODIR) mkdir $(EXEODIR) @if not exist $(EXEODIR) mkdir $(EXEODIR)
...@@ -83,3 +83,7 @@ $(SCFGHELP): $(OBJS) $(MAKEHELP) ...@@ -83,3 +83,7 @@ $(SCFGHELP): $(OBJS) $(MAKEHELP)
$(SCFG): $(OBJS) $(SCFG): $(OBJS)
@echo Linking $@ @echo Linking $@
@$(CC) $(CFLAGS) -e$@ $** @$(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