Skip to content

Commit 0dedd89

Browse files
committed
Add "all_s" target in all directories and in the top Makefile
1 parent 34ba426 commit 0dedd89

File tree

6 files changed

+21
-2
lines changed

6 files changed

+21
-2
lines changed

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ endif
88
all:
99
set -e; for i in $(DIRS); do $(MAKE) CCOMPOPTS='$(CCOMPOPTS)' -C $$i all; done
1010

11+
all_s:
12+
set -e; for i in $(DIRS); do $(MAKE) CCOMPOPTS='$(CCOMPOPTS)' -C $$i all_s; done
13+
1114
test:
1215
set -e; for i in $(DIRS); do $(MAKE) SIMU='$(SIMU)' -C $$i test; done
1316

abi/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,14 +73,15 @@ layout.h: genlayout.exe
7373
./genlayout.exe $(GENLAYOUT_OPTIONS) > layout.h
7474

7575
struct%.o: CCOMPFLAGS += -fstruct-passing -dclight
76+
struct%.s: CCOMPFLAGS += -fstruct-passing -dclight
7677

7778
%_compcert.o: %.c
7879
$(CCOMP) $(CCOMPFLAGS) -c -o $@ $*.c
7980
%_cc.o: %.c
8081
$(CC) $(CFLAGS) -c -o $@ $*.c
8182

8283
%_compcert.s: %.c
83-
$(CCOMP) -S -o $@ $*.c
84+
$(CCOMP) $(CCOMPFLAGS) -S -o $@ $*.c
8485
%_cc.s: %.c
8586
$(CC) $(CFLAGS) -S -o $@ $*.c
8687

compression/Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ LZSS_OBJS=$(COMMON_OBJS) lzvars.o lzhash.o lzencode.o lzdecode.o lzssmain.o
2626
lzss: $(LZSS_OBJS)
2727
$(CC) $(CFLAGS) -o $@ $(LZSS_OBJS) $(LIBS)
2828

29+
all_s: $(ARCODE_OBJS:.o=.s) $(LZW_OBJS:.o=.s) $(LZSS_OBJS:.o=.s)
30+
31+
%.s: %.c
32+
$(CC) $(CFLAGS) -S $*.c
33+
2934
TESTFILE:=$(firstword $(wildcard /usr/share/dict/words) ./lzss)
3035
TESTCOMPR=/tmp/testcompr.$$$$
3136
TESTEXPND=/tmp/testexpnd.$$$$

export/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ fft.vo fftsp.vo fftw.vo fib.vo integr.vo knucleotide.vo: CFLAGS += -short-idents
3838

3939
qsort.vo sha1.vo sha3.vo siphash24.vo spectral.vo vmach.vo: CFLAGS += -normalize
4040

41-
all: $(GENERATED:.v=.vo)
41+
all all_s: $(GENERATED:.v=.vo)
4242

4343
test:
4444

raytracer/Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ all: render
1414
render: $(OBJS)
1515
$(CC) $(CFLAGS) -o render $(OBJS) $(LIBS)
1616

17+
all_s: $(OBJS:.o=.s)
18+
19+
%.s: %.c
20+
$(CC) $(CFLAGS) -S $*.c
21+
1722
clean:
1823
rm -f *.o *.parsed.c *.light.c *.s *.sdump *.ppm render
1924

spass/Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ all: spass
1717
spass: $(SRCS:.c=.o)
1818
$(CC) $(CFLAGS) -o spass $(SRCS:.c=.o) $(LIBMATH)
1919

20+
all_s: $(SRCS:.c=.s)
21+
22+
%.s: %.c
23+
$(CC) $(CFLAGS) -S $*.c
24+
2025
clean:
2126
rm -f spass
2227
rm -f *.o *.s *.parsed.c *.light.c *.sdump

0 commit comments

Comments
 (0)