summaryrefslogtreecommitdiffstats
path: root/common/win/my_getopt-1.5/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'common/win/my_getopt-1.5/Makefile')
-rw-r--r--common/win/my_getopt-1.5/Makefile26
1 files changed, 26 insertions, 0 deletions
diff --git a/common/win/my_getopt-1.5/Makefile b/common/win/my_getopt-1.5/Makefile
new file mode 100644
index 00000000..083cc4aa
--- /dev/null
+++ b/common/win/my_getopt-1.5/Makefile
@@ -0,0 +1,26 @@
+all: copy
+
+# Compiler options
+#CCOPTS = -g -O3 -Wall -Werror
+CCOPTS =
+
+# Compiler
+CC = gcc -Wall -Werror
+#CC = cc
+
+# Linker
+LD = $(CC)
+
+# Utility to remove a file
+RM = rm
+
+OBJS = main.o my_getopt.o
+
+copy: $(OBJS)
+ $(LD) -o $@ $(OBJS)
+
+clean:
+ $(RM) -f copy $(OBJS) *~
+
+%.o: %.c getopt.h my_getopt.h
+ $(CC) $(CCOPTS) -o $@ -c $<