aboutsummaryrefslogtreecommitdiff
path: root/vendor/optparse-master/examples/Makefile
blob: 11ae2d0e39a83c84d6f6289287d1e1dddff0dd68 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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)