Merge branch 'master' of u-pl12.ms.mff.cuni.cz:Git/Zapoctak
commit
6a99fb07d1
@ -0,0 +1,21 @@
|
||||
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
|
Loading…
Reference in New Issue