• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1SRCS	= PR26261-obja.c PR26261-objb.c PR26261-main.c
2EXE	= PR26261-exe
3OBJS	= $(SRCS:.c=.o)
4CFLAGS	= -Wall -g
5
6all: $(EXE)
7
8%.o: %.c
9	$(CC) $(CFLAGS) -c $<
10
11$(EXE): $(OBJS)
12	gcc -fPIC $(OBJS) -o $@
13
14cleanobjs:
15	rm -rf $(OBJS)
16
17cleanexe:
18	rm $(EXE)
19
20clean: cleanobjs
21	rm -rf *~
22