summaryrefslogtreecommitdiffstats
path: root/Makefile
blob: c0d8cd08915e6bff6a3376391f70f788d0e864d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
CC	= cc
CFLAGS	= -g -Wall -O2
LDFLAGS	=
OBJS	= main.o
NAME	= zxdump

PREFIX	= /usr/local
INSTALL	= /usr/bin/install
RM	= /bin/rm

all: $(NAME)

$(NAME): $(OBJS)
	$(CC) $(OBJS) -o $(NAME) $(LDFLAGS)

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

install: $(NAME)
	$(INSTALL) -c -m 0755 $(NAME) $(PREFIX)/bin

clean:
	$(RM) -f $(NAME) $(OBJS)