Skip to content

Commit 272d4b9

Browse files
committed
Makefile: Support assembly compile
Signed-off-by: SeongJae Park <[email protected]>
1 parent 5cca6ff commit 272d4b9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Makefile

+4-1
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,14 @@ all: $(APPS)
1313
%.o: %.c masim.h
1414
$(CC) -c -o $@ $< $(CFLAGS)
1515

16+
%.s: %.c
17+
$(CC) -S -o $@ $< $(CFLAGS)
18+
1619
$(MASIM): $(OBJ_MSM)
1720
$(CC) -o $@ $^ $(LIBS)
1821

1922
clean:
20-
rm -f *.o $(APPS)
23+
rm -f *.o *.s $(APPS)
2124

2225
help:
2326
@echo "Usage: make <target>"

0 commit comments

Comments
 (0)