aboutsummaryrefslogtreecommitdiff
path: root/Nuked-OPL3/Makefile
blob: f89679299903e22028b86b217f4dadd12cecb7d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
CC 	:= gcc
AR	:= ar
CFLAGS	:= -Wpedantic -s -O2 -Wall -I. -fPIC
LDFLAGS	:= -shared

all: libopl3.so

libopl3.so: libopl3.a
	$(CC) $(LDFLAGS) -o libopl3.so opl3.o

libopl3.a: opl3.o
	ar crs libopl3.a opl3.o

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

clean:
	rm -f opl3.o libopl3.a libopl3.so

.PHONY: clean all