Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Makefile? #1

Open
zvezdochiot opened this issue Jul 29, 2022 · 1 comment
Open

Makefile? #1

zvezdochiot opened this issue Jul 29, 2022 · 1 comment

Comments

@zvezdochiot
Copy link

zvezdochiot commented Jul 29, 2022

Hi @aikiriao .

Maybe separate code and docs?:

mkdir src
mv *.c *.h test src

Makefile:

CC = gcc
CFLAGS = -std=c89 -O3 -g3 -Wall -Wextra -Wpedantic -Wformat=2 -Wstrict-aliasing=2 -Wconversion -Wmissing-prototypes -Wstrict-prototypes -Wold-style-definition
CPPFLAGS = -DNDEBUG
LDFLAGS = -Wall -Wextra -Wpedantic -O3
LDLIBS = -lm

SRCS = src/aad_encoder.c \
       src/aad_decoder.c \
       src/aad_tables.c \
       src/wav.c \
       src/command_line_parser.c \
       src/main.c
OBJS = $(SRCS:%.c=%.o)
TARGETS = aad

all: $(TARGETS) 

rebuild:
	make clean
	make all

clean:
	rm -rf $(TARGETS) $(OBJS)

$(TARGETS) : $(OBJS)
	$(CC) $(LDFLAGS) $^ $(LDLIBS) -o $@

%.o: %.c
	$(CC) $(CFLAGS) $(CPPFLAGS) $(INCLUDE) -c $< -o $@

And update head README.md?:

![GitHub release (latest by date)](https://img.shields.io/github/v/release/aikiriao/AAD)
![GitHub Release Date](https://img.shields.io/github/release-date/aikiriao/AAD)
![GitHub repo size](https://img.shields.io/github/repo-size/aikiriao/AAD)
![GitHub all releases](https://img.shields.io/github/downloads/aikiriao/AAD/total)
![GitHub](https://img.shields.io/github/license/aikiriao/AAD)  

See:
GitHub release (latest by date) GitHub Release Date GitHub repo size GitHub all releases GitHub

And update release: add aad-$(ver).tar.xz (without test)?

@aikiriao
Copy link
Owner

aikiriao commented Jul 30, 2022

Thank you for your comments.

Maybe separate code and docs?

Sure. I move source/header files to the src directory. Also, rewrite Makefile. (006456c)

And update head README.md?:

Ok, I added badges (43ebd0a). Thx!

And update release: add aad-$(ver).tar.xz (without test)?

Please wait for a little. Then, I'll create new GitHub action for creating artifacts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants