Difference between revisions of "Make"

From Computer Science
Jump to: navigation, search
(Created page with "=Make=")
 
(Make)
 
Line 1: Line 1:
=Make=
+
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
 +
 
 +
<pre>
 +
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
 +
</pre>

Latest revision as of 12:41, 23 August 2022

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