From ff415f69a93812418cc60a33dd14452fc6b2901a Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Tue, 25 Jun 2024 15:50:13 +0200 Subject: Support generation of asm/obj files --- vendor/optparse-master/examples/Makefile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 vendor/optparse-master/examples/Makefile (limited to 'vendor/optparse-master/examples/Makefile') diff --git a/vendor/optparse-master/examples/Makefile b/vendor/optparse-master/examples/Makefile new file mode 100644 index 0000000..11ae2d0 --- /dev/null +++ b/vendor/optparse-master/examples/Makefile @@ -0,0 +1,18 @@ +CC = cc +CFLAGS = -ansi -pedantic -Wall -Wextra -Wno-unused-function -Wno-unused-but-set-variable -g3 +LDFLAGS = +LDLIBS = + +all: short$(EXE) long$(EXE) subcommands$(EXE) + +short$(EXE): short.c + $(CC) $(CFLAGS) $(LDFLAGS) -o $@ short.c ../optparse.h $(LDLIBS) + +long$(EXE): long.c + $(CC) $(CFLAGS) $(LDFLAGS) -o $@ long.c ../optparse.h $(LDLIBS) + +subcommands$(EXE): subcommands.c + $(CC) $(CFLAGS) $(LDFLAGS) -o $@ subcommands.c ../optparse.h $(LDLIBS) + +clean: + rm -f short$(EXE) long$(EXE) subcommands$(EXE) -- cgit v1.2.3