summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile29
1 files changed, 29 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..e8adffb
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,29 @@
+PROG=gncpmount
+CXX=gcc
+CXXFLAGS=-Wall -pedantic -ansi
+GTK=`pkg-config --cflags --libs gtk+-2.0`
+
+
+OBJS=globals.o dialogs.o ncpwrapper.o
+
+.PHONY: clean
+
+all: $(PROG)
+
+# Obecne pravidlo
+%.o: %.c
+ $(CXX) $(CXXFLAGS) $(GTK) -c $<
+
+#Zavislosti (g++ -MM *.cpp)
+globals.o: globals.c globals.h
+dialogs.o: dialogs.c dialogs.h globals.h
+ncpwrapper.o: ncpwrapper.c ncpwrapper.h globals.h dialogs.h
+
+
+#Slinkovani
+$(PROG): $(PROG).c $(OBJS)
+ $(CXX) $(OBJS) $(CXXFLAGS) $(GTK) $(PROG).c -o $(PROG)
+
+clean:
+ $(RM) *.o $(PROG)
+