pz12_gavrilov

This is a task for our favourite professor
git clone git://git.stellar-nexus.ru/pz12_gavrilov
Log | Files | Refs

Makefile (459B)


      1 include config.mk
      2 BIN1 =\
      3 	bell \
      4 	greed \
      5 	full
      6 
      7 BIN2 =\
      8 	bubble \
      9 	choice \
     10 	insert \
     11 	shell
     12 
     13 LIBS = ${wildcard libutil/*.c}
     14 OBJS = ${LIBS:.c=.o}
     15 
     16 all: ${BIN1} ${BIN2}
     17 
     18 ${BIN1}: ${OBJS}
     19 	${CC} ${CFLAGS} -D$@ -o $@ knapsack_single.c knapsack.c ${OBJS} ${LDFLAGS}
     20 	strip $@
     21 
     22 ${BIN2}:
     23 	${CC} ${CFLAGS} -D$@ -o $@ sort_single.c sort.c ${OBJS} ${LDFLAGS}
     24 	strip $@
     25 
     26 %.o: %.c
     27 	${CC} ${CFLAGS} -c $< -o $@
     28 
     29 clean:
     30 	rm -f ${BIN1} ${BIN2} ${OBJS}
     31 
     32 .PHONY: all clean