Skip to content

Commit

Permalink
Allow source files to be assembly as well as C
Browse files Browse the repository at this point in the history
Signed-off-by: Keith Packard <keithp@keithp.com>
  • Loading branch information
keith-packard committed Nov 1, 2019
1 parent 58f2560 commit 2145ba7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions snek.defs
@@ -1,6 +1,7 @@
SNEK_LOCAL_VPATH ?= .

vpath %.c $(SNEK_LOCAL_VPATH):$(SNEK_ROOT)
vpath %.S $(SNEK_LOCAL_VPATH):$(SNEK_ROOT)
vpath %.h $(SNEK_LOCAL_VPATH):$(SNEK_ROOT)
vpath %.ll $(SNEK_LOCAL_VPATH):$(SNEK_ROOT)
vpath %.py $(SNEK_LOCAL_VPATH):$(SNEK_ROOT)
Expand Down Expand Up @@ -124,6 +125,9 @@ quiet ?= $($1)
.c.o:
$(call quiet,CC) -c $(CFLAGS) -o $@ $<

.S.o:
$(call quiet,CC) -c $(CFLAGS) -o $@ $<

endif

endif

0 comments on commit 2145ba7

Please sign in to comment.