Skip to content

Commit

Permalink
CMIYC2021 edition: update gitignore and Makefile, add --file5 / --sep…
Browse files Browse the repository at this point in the history
…4 / --skip-rep, increase LEN_MAX from 32 to 64
  • Loading branch information
matrix committed Aug 10, 2021
1 parent 9e50487 commit 3f2e2a3
Show file tree
Hide file tree
Showing 3 changed files with 193 additions and 40 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
*.bin
*.exe
*.dSYM
bin/
28 changes: 27 additions & 1 deletion src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,33 @@
## Makefile
##

CFLAGS += -Wall -W -pipe -O2 -std=gnu99
DEBUG := 0

CFLAGS += -Wall -W -pipe -std=gnu99

ifeq ($(DEBUG),0)
CFLAGS += -O2
ifneq ($(UNAME),Darwin)
LFLAGS += -s
endif
else
ifeq ($(DEBUG),1)
ifneq ($(UNAME),Darwin)
CFLAGS += -DDEBUG -Og -ggdb
else
CFLAGS += -DDEBUG -O0 -ggdb
endif
else
ifeq ($(DEBUG),2)
ifneq ($(UNAME),Darwin)
CFLAGS += -DDEBUG -Og -ggdb
else
CFLAGS += -DDEBUG -O0 -ggdb
endif
CFLAGS += -fsanitize=address -fno-omit-frame-pointer
endif
endif
endif

all: clean native

Expand Down
Loading

0 comments on commit 3f2e2a3

Please sign in to comment.