aboutsummaryrefslogtreecommitdiffstats
path: root/jsi/src/Makefile
blob: 34b60e74c4efb4298b23a31c5baa95be8d9612f2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
COMPILER = gcc
TARGET = ../lib/libjsi.a
OBJS = jsi.o

%.o: %.c
	@echo compiling $<
	@$(COMPILER) -c -o $@ $<

$(TARGET): $(OBJS)
	@echo making static libary
	@ar rcs $(TARGET) $(OBJS)
test: test.c jsi.*
	@echo making test
	@$(COMPILER) -o $@ $< $(TARGET) -g

# Objects.
jsi.o: jsi.c jsi.h

clean:
	rm *.o
	rm test
	rm $(TARGET)