1
0
Fork 0
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
295 B
Makefile

CC:=gcc
WARNINGS:=-Wall -Wextra -Wpedantic
CCFLAGS:=$(WARNINGS) -g
LINKER:=gcc
LINKFLAGS:=
all: zapoctak
zapoctak: main.x
mv main.x zapoctak
%.x: %.o
$(LINKER) -o $@ $(LINKFLAGS) $^
%.o: %.c
$(CC) -c -o $@ $(CCFLAGS) $<
clean:
-rm -v *.x *.o *.dump a.out 2>/dev/null
.PHONY: all clean