source: trunk/Makefile @ 26

Last change on this file since 26 was 26, checked in by monga, 5 years ago

Programmi 2014

File size: 902 bytes
Line 
1TARGET_ARCH=-m32
2ASM=nasm
3CFLAGS=-masm=intel -Wall
4
5mioboot: mioboot.asm
6        $(ASM) -l $@.lst -o $@ $<
7
8mioboot-nobios: mioboot-nobios.asm
9        $(ASM) -l $@.lst -o $@ $<
10
11mioboot-nobios-simple: mioboot-nobios-simple.asm
12        $(ASM) -l $@.lst -o $@ $<
13
14
15esercizio.o: esercizio.asm
16        $(ASM) -felf $<
17
18esercizio: esercizio.o
19
20pthreads-pc rw rw-nosync rw-mutex rw-rlotto: LDFLAGS=-lpthread
21
22pthreads-pc: pthreads-pc.c
23
24fork-pc: fork-pc.c
25
26tsl.o: tsl.asm
27        $(ASM) -felf tsl.asm
28
29tsl: tsl.o
30
31enter.o: enter.asm
32        $(ASM) -felf enter.asm
33
34threads-tsl: threads-tsl.o enter.o
35
36threads-tsl-new: threads-tsl-new.c
37
38%.tex : %.nw
39        noweave -delay -filter btdefn -index -filter "awk -f lst.awk|tee debug" $< > $@
40
41%.c : %.nw
42        notangle -R$@ -filter btdefn $< > $@
43
44%.pdf : %.tex
45        pdflatex $< && pdflatex $< && pdflatex $<
46
47.PHONY: clean
48clean:
49        rm -f mioboot mioboot-nobios mioboot-nobios-simple *.lst *~ semantic.cache esegui forca
Note: See TracBrowser for help on using the repository browser.