[project @ 2001-04-03 12:58:54 by rrt]
[ghc-hetmet.git] / mk / target.mk
index 6970096..e3d6c80 100644 (file)
@@ -311,13 +311,13 @@ endif
 #----------------------------------------
 #      C programs
 
-ifneq "$(C_PROG)" ""
-all :: $(C_PROG)
-
 ifeq "$(TARGETPLATFORM)" "i386-unknown-mingw32"
-CC_OPTS += -mno-cygwin
+CC_OPTS += -mno-cygwin -mwin32
 endif
 
+ifneq "$(C_PROG)" ""
+all :: $(C_PROG)
+
 $(C_PROG) :: $(C_OBJS)
        $(CC) -o $@ $(CC_OPTS) $(LD_OPTS) $(C_OBJS) $(LIBS)
 endif