libpayload: Add qsort()
[coreboot.git] / payloads / libpayload / libc / Makefile.inc
index 9b7a4d6d25ebe86f7834b87db65c58a8c1096f13..0dab8c1abe12eb4e77d7f635db6b696d6fad5b79 100644 (file)
@@ -2,6 +2,7 @@
 ## This file is part of the libpayload project.
 ##
 ## Copyright (C) 2008 Advanced Micro Devices, Inc.
+## Copyright (C) 2008 coresystems GmbH
 ##
 ## Redistribution and use in source and binary forms, with or without
 ## modification, are permitted provided that the following conditions
 ## SUCH DAMAGE.
 ##
 
-TARGETS-y += libc/malloc.o libc/printf.o libc/console.o libc/string.o
-TARGETS-y += libc/memory.o libc/ctype.o libc/ipchecksum.o libc/lib.o
-TARGETS-y += libc/rand.o libc/time.o libc/lar.o libc/exec.o
+libc-$(CONFIG_LIBC) += malloc.c printf.c console.c string.c
+libc-$(CONFIG_LIBC) += memory.c ctype.c ipchecksum.c lib.c
+libc-$(CONFIG_LIBC) += rand.c time.c exec.c
+libc-$(CONFIG_LIBC) += readline.c getopt_long.c sysinfo.c
+libc-$(CONFIG_LIBC) += args.c strings.c
+libc-$(CONFIG_LIBC) += strlcpy.c
+libc-$(CONFIG_LIBC) += qsort.c
+
+# should be moved to coreboot directory
+libc-$(CONFIG_LAR) += lar.c
+#libc-$(CONFIG_CBFS) += cbfs.c