summaryrefslogtreecommitdiff
path: root/common/win/my_getopt-1.5/Makefile
blob: 083cc4aafcb2208236c66b8fc58430996c112283 (plain)
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
all: copy

# Compiler options
#CCOPTS = -g -O3 -Wall -Werror
CCOPTS =

# Compiler
CC = gcc -Wall -Werror
#CC = cc

# Linker
LD = $(CC)

# Utility to remove a file
RM = rm

OBJS = main.o my_getopt.o

copy: $(OBJS)
	$(LD) -o $@ $(OBJS)

clean:
	$(RM) -f copy $(OBJS) *~

%.o: %.c getopt.h my_getopt.h
	$(CC) $(CCOPTS) -o $@ -c $<