summaryrefslogtreecommitdiff
path: root/win32
diff options
context:
space:
mode:
Diffstat (limited to 'win32')
-rw-r--r--win32/Makefile14
1 files changed, 10 insertions, 4 deletions
diff --git a/win32/Makefile b/win32/Makefile
index c0894261..83595365 100644
--- a/win32/Makefile
+++ b/win32/Makefile
@@ -52,18 +52,24 @@ OBJS = $(patsubst %.c,%.o,$(notdir $(SRCS)))
VPATH = .:..:../libfat
-all: installer
+TARGETS = syslinux.exe
+
+ifeq ($(CC_IS_OK),0)
+all: $(TARGETS)
+else
+all:
+ rm -f $(TARGETS)
+endif
tidy:
-rm -f *.o *.i *.s *.a .*.d
clean: tidy
- -rm -f syslinux.exe
spotless: clean
- -rm -f *~
+ -rm -f *~ $(TARGETS)
-installer: syslinux.exe
+installer:
syslinux.exe: $(OBJS)
$(CC) $(LDFLAGS) -o $@ $^