Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
43 lines (36 sloc) 1.03 KB
# Parametry prekladace.
CFLAGS=-Wall -O0 -g
# Vychozi pravidlo pro vytvoreni vysledne spustitelne aplikace.
all: asm_in_c_0.s asm_in_c_0 \
asm_in_c_1.s asm_in_c_1 \
asm_in_c_2.s asm_in_c_2 \
asm_in_c_3.s asm_in_c_3 \
asm_in_c_4.s asm_in_c_4 \
asm_in_c_5.s asm_in_c_5 \
asm_in_c_6.s asm_in_c_6 \
asm_in_c_7.s asm_in_c_7 \
asm_in_c_8.s asm_in_c_8 \
asm_in_c_9.s asm_in_c_9 \
asm_in_c_10.s asm_in_c_10 \
asm_in_c_11.s asm_in_c_11 \
asm_in_c_12.s asm_in_c_12 \
asm_in_c_13.s asm_in_c_13 \
asm_in_c_14.s asm_in_c_14 \
asm_in_c_15.s asm_in_c_15 \
asm_in_c_16.s asm_in_c_16
clean:
rm -f *.o
rm -f *.s
rm -f asm_in_c_[0-9]+
# Pravidlo pro slinkovani vsech objektovych souboru a vytvoreni
# vysledne spustitelne aplikace.
$(PROGNAME): $(PROGNAME).o
$(CC) -o $@ $(LDFLAGS) $<
# Pravidlo pro preklad kazdeho zdrojoveho souboru do prislusneho
# objektoveho souboru.
%.o: %.c
$(CC) $(CFLAGS) -c $< -o $@
# Pravidlo pro preklad kazdeho zdrojoveho souboru do prislusneho
# assemblerovskeho vysledku.
%.s: %.c
$(CC) $(CFLAGS) -S -c $< -o $@