summaryrefslogtreecommitdiffstats
path: root/skeletons/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'skeletons/Makefile')
-rw-r--r--skeletons/Makefile27
1 files changed, 27 insertions, 0 deletions
diff --git a/skeletons/Makefile b/skeletons/Makefile
new file mode 100644
index 0000000..30934a0
--- /dev/null
+++ b/skeletons/Makefile
@@ -0,0 +1,27 @@
+BIN =
+OBJ =
+CC = gcc
+INCLUDES =
+DEFINES =
+LIBS =
+COMMONFLAGS = -Werror -Wall -pedantic -O0 -g -pipe
+CFLAGS = -c $(INCLUDES) $(DEFINES) $(COMMONFLAGS)
+LDFLAGS = $(LIBS) $(COMMONFLAGS)
+
+$(BIN) : $(OBJ)
+ $(CC) $(OBJ) $(LDFLAGS) -o $@
+
+%.o : %.c
+ $(CC) $(CFLAGS) -o $@ $<
+
+clean :
+ rm -f $(OBJ) $(BIN)
+
+dep :
+ makedepend $(INCLUDES) $(DEFINES) -Y *.c *.h > /dev/null 2>&1
+ rm -f Makefile.bak
+
+run : $(BIN)
+ @./$(BIN)
+:normal ggA
+:startinsert!