Index: uspace/app/pcc/cc/ccom/mkext/Makefile
===================================================================
--- uspace/app/pcc/cc/ccom/mkext/Makefile	(revision 597466186f14d9d212428c08a263da0d9fa06d3c)
+++ uspace/app/pcc/cc/ccom/mkext/Makefile	(revision 6c69d19e1d534bd8ed18b32d34a896128d469e16)
@@ -37,11 +37,23 @@
 POSIX_COMPAT = y
 
+PRE_DEPEND = mkext.c table.c common.c
+EXTRA_CLEAN = mkext.c table.c common.c
+
 # FIXME: external.{c,h} must be generated for each target system
 
 SOURCES = \
-	${MIPDIR}/mkext.c \
-	$(MDIR)/table.c \
-	${MIPDIR}/common.c
+	mkext.c \
+	table.c \
+	common.c
 
 include $(USPACE_PREFIX)/Makefile.common
 
+mkext.c: $(MIPDIR)/mkext.c
+	ln -s -f $^ $@
+
+table.c: $(MDIR)/table.c
+	ln -s -f $^ $@
+
+common.c: $(MIPDIR)/common.c
+	ln -s -f $^ $@
+
