Makefile 674 B

1234567891011121314151617181920212223
  1. c_executables = $(patsubst %.c,%,$(wildcard *.c))
  2. cxx_executables = $(patsubst %.cpp,%,$(wildcard *.cpp))
  3. target = $(c_executables) $(cxx_executables) manifest
  4. level = ../
  5. include ../Makefile
  6. CFLAGS-debug += -fno-builtin -nostdlib
  7. ifeq ($(SYS),x86_64-linux-gnu)
  8. $(c_executables): %: %.c $(libs) $(level)../../../Pal/src/user_start.o
  9. @echo [ $@ ]
  10. $(CC) $(CFLAGS-debug) $(LDFLAGS-debug) -o $@ $^ -lpal -lsysdb_debug
  11. $(cxx_executables): %: %.cpp $(libs) $(level)../../../Pal/src/user_start.o
  12. @echo [ $@ ]
  13. $(CXX) $(CFLAGS-debug) $(LDFLAGS-debug) -o $@ $^ -lpal -lsysdb_debug
  14. else
  15. .IGNORE: $(c_executables) $(cxx_executables)
  16. $(c_executables) $(cxx_executables):
  17. endif