getopt
This commit is contained in:
parent
b5b554bf31
commit
561a344f30
3 changed files with 68 additions and 0 deletions
15
getopt/Makefile
Normal file
15
getopt/Makefile
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
CC = gcc
|
||||
CFLAGS = -Wall -O2
|
||||
|
||||
all: getopt.elf getopt_long.elf
|
||||
|
||||
getopt.elf: getopt.c
|
||||
@echo CC $@
|
||||
@$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
|
||||
|
||||
getopt_long.elf: getopt_long.c
|
||||
@echo CC $@
|
||||
@$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
|
||||
|
||||
clean:
|
||||
rm -f *.elf
|
||||
Loading…
Add table
Add a link
Reference in a new issue