-if unix
-AM_CFLAGS+=-Dunix
-endif
-
-if msdos
-AM_CFLAGS+=-D__MSDOS__
-endif
-
-
-%.c: %.q $(top_builddir)/src/language/lexer/q2c$(EXEEXT)
- @mkdir -p `dirname $@`
- $(top_builddir)/src/language/lexer/q2c $< $@
+CC_FOR_BUILD = @CC_FOR_BUILD@
+EXEEXT_FOR_BUILD = @EXEEXT_FOR_BUILD@
+.q.c:
+ @$(MKDIR_P) `dirname $@`
+ ./src/language/lexer/q2c$(EXEEXT_FOR_BUILD) $< $@