diff --git a/main.cpp b/main.cpp
index 8c380b3..43c5ae3 100644
--- a/main.cpp
+++ b/main.cpp
@@ -38,7 +38,7 @@ string getKiCadlibPathfromconf(string confFilename)
     tab.eraseemptyrows();
     path = tab.Tableread(tab.findrow("KICAD_LIB_PATH"),1);
     lastchr = path[path.length()-1];
-    if(lastchr!='\\') path.append("\\");
+    if(lastchr!='/') path.append("/");
     return path;
 }
 
diff --git a/makefile b/makefile
new file mode 100644
index 0000000..451d976
--- /dev/null
+++ b/makefile
@@ -0,0 +1,32 @@
+# Project: KiCadICgen
+
+TARGET=KiCadlib
+SRC = ICProcTable.cpp ICSymbol.cpp KiCadlibOp.cpp main.cpp Table.cpp 
+OBJ = $(SRC:.cpp=.o)
+CPP = g++
+CC  = g++
+RM  = rm -f
+
+
+DEFINES   = 
+CXXFLAGS  = $(CXXINCS) $(DEFINES)   -g3 -Wall -pedantic
+CFLAGS    = $(INCS) $(DEFINES)   -g3 -Wall -pedantic
+
+.cpp.o:
+	$(CPP) -c $(CXXFLAGS) $< -o $@ 
+.c.o:
+	$(CC) -c $(CFLAGS) $< -o $@ 
+
+
+.PHONY: all all-before all-after clean clean-custom
+all: all-before $(TARGET) all-after
+
+clean: clean-custom
+	$(RM) $(TARGET) $(OBJ)
+
+$(TARGET): $(OBJ)
+	$(CPP) $(OBJ) --output "$(TARGET)" $(LIBS) 
+
+
+
+
