Make

From Computer Science
Revision as of 12:41, 23 August 2022 by Jkinne (talk | contribs) (Make)
Jump to: navigation, search

GNU Make...

https://www.gnu.org/software/make/

https://linux.die.net/man/1/make

https://www.gnu.org/software/make/manual/html_node/Quick-Reference.html

SHELL = /bin/sh
CFLAGS = -g -Wall -O0
SRCS = $(wildcard *.c)
OBJS = $(SRCS:.c=.o)

all: $(OBJS)

%.o : %.c
        gcc $(CFLAGS) $< -o $@

clean:
        rm -f *.o