forked from redwil/sixpair
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (22 loc) · 793 Bytes
/
Copy pathMakefile
File metadata and controls
29 lines (22 loc) · 793 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# from https://github.com/lostella/SimpleMakefile
# using pkg-config on opensuse 15.4
CC=gcc
TARGET=sixpair
SOURCES=sixpair.c
CFLAGS=-O3 $(shell pkg-config --cflags libusb)
LFLAGS=$(shell pkg-config --libs libusb)
################################################################################
### DO NOT EDIT THE FOLLOWING LINES ############################################
# define list of objects
OBJSC=$(SOURCES:.c=.o)
OBJS=$(OBJSC:.cpp=.o)
# the target is obtained linking all .o files
all: $(SOURCES) $(TARGET)
$(TARGET): $(OBJS)
$(CC) $(LFLAGS) $(OBJS) -o $(TARGET)
purge: clean
rm -f $(TARGET)
clean:
rm -f *.o
################################################################################
################################################################################