Created
August 30, 2022 02:03
-
-
Save 8dcc/54d3c5b3255e27ebed653ea42ffe6ee2 to your computer and use it in GitHub Desktop.
Generic makefile for my C projects
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Generic Makefile for my projects | |
# https://github.com/r4v10l1/ | |
CC=gcc | |
CFLAGS=-Wall | |
all: output.out | |
output.out: src/* | |
$(CC) $(CFLAGS) -o $@ src/main.c | |
# Add obj and bin folders if needed | |
clean: | |
rm *.out |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment