Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CFLAGS = -Wall -Wextra -Werror -std=gnu11
- LDFLAGS =
- CDEBUG = -g -DDEBUG -O0
- CRELEASE = -DNDEBUG -O2
- CC = gcc
- .c.o:
- $(CC) $(CFLAGS) -c -o $@ $<
- parse.o: parse.c parse.h
- trie.o: trie.c trie.h
- dictionary.o: dictionary.c trie.h parse.h
- dictionary: dictionary.o trie.o parse.o
- $(CC) $(CLFAGS) -o dictionary dictionary.o trie.o parse.o
- dictionary.dbg: dictionary.o trie.o parse.o
- $(CC) $(CLFAGS) -o dictionary.dbg dictionary.o trie.o parse.o
- .PHONY: all clean debug
- all: CFLAGS += $(CRELEASE)
- all: dictionary
- debug: CFLAGS += $(CDEBUG)
- debug: dictionary.dbg
- clean:
- rm trie.o parse.o dictionary.o dictionary dictionary.dbg
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement