summaryrefslogtreecommitdiffstats
path: root/utils/hwstub/lib/Makefile
blob: 7c455e4586fae9453a5edfd06d7bc50f49f9049e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
CC=gcc
AR=ar
CFLAGS=-W -Wall -O2 `pkg-config --cflags libusb-1.0` -std=c99 -g -fPIC
LDFLAGS=`pkg-config --libs libusb-1.0` -fPIC
LIB=libhwstub.a
SRC=$(wildcard *.c)
OBJ=$(SRC:.c=.o)

all: $(LIB)

%.o: %.c
	$(CC) $(CFLAGS) -c -o $@ $<

$(LIB): $(OBJ)
	$(AR) rcs $@ $^

clean:
	rm -rf $(OBJ) $(LIB)