Makefile 386 B

12345678910111213141516
  1. # Makefile for Hyper-V tools
  2. CC = $(CROSS_COMPILE)gcc
  3. PTHREAD_LIBS = -lpthread
  4. WARNINGS = -Wall -Wextra
  5. CFLAGS = $(WARNINGS) -g $(PTHREAD_LIBS) $(shell getconf LFS_CFLAGS)
  6. CFLAGS += -D__EXPORTED_HEADERS__ -I../../include/uapi -I../../include
  7. all: hv_kvp_daemon hv_vss_daemon hv_fcopy_daemon
  8. %: %.c
  9. $(CC) $(CFLAGS) -o $@ $^
  10. clean:
  11. $(RM) hv_kvp_daemon hv_vss_daemon hv_fcopy_daemon