initial commit
This commit is contained in:
commit
016ed8ff6c
14 changed files with 1932 additions and 0 deletions
23
test/Makefile
Normal file
23
test/Makefile
Normal file
|
@ -0,0 +1,23 @@
|
|||
CC = cc
|
||||
LDFLAGS = -lreadopt
|
||||
MACROS = -D_POSIX_C_SOURCE=200809L
|
||||
CFLAGS = $(MACROS) --std=c99 -O2 -g -Wall -Wextra -Wpedantic
|
||||
|
||||
SOURCES = test.c
|
||||
OBJECTS = $(SOURCES:.c=.o)
|
||||
|
||||
RM = rm -f --
|
||||
CP = cp --
|
||||
|
||||
all: test
|
||||
|
||||
%.o: %.c
|
||||
$(CC) $(CFLAGS) -c $<
|
||||
|
||||
test: $(OBJECTS)
|
||||
$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
|
||||
|
||||
clean:
|
||||
$(RM) $(OBJECTS)
|
||||
|
||||
.PHONY: clean
|
Loading…
Add table
Add a link
Reference in a new issue